I am new to
Struts and I am struggling on what would
be the best way to do the following:
on several pages, the user can perform actions which
need to be confirmed before being actually performed
(e.g., exiting the application or logging off). The
confirmation page is the same regardless of the calling
point, but if the user cancels, I need to go back to
the previous page. I am not sure how to pass the return
url to the confirmation page, and how to make this
page generic (template tag, read value from session)...
or
I have a form (in request scope) with submit and cancel
buttons and after pushing either of them I should display
a confirmation dialog ("Are you sure?") and depending on user's
choice I have to perform the actual action 'submit' or 'cancel'
if user clicks 'yes' and have to return to the same page with
form if user clicks 'no'. The need of this confirmation routine
is questionable but this is not the point in this case, the point
is how to preserve everything you have in your request while
making this trip.
would anyone have an idea?
Thanks for your help,
Seshagiri