Hello everyone,
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.
I tried to do this in my action which calls confirmation
page and confirmation page itself (as scriplet):
java.util.Enumeration enum = request.getAttributeNames();
while (enum.hasMoreElements()) {
String atName = (String) enum.nextElement();
request.setAttribute(atName, request.getAttribute(atName));
}
But this didn't help because if I click 'no' button (a link
technically speaking, which leads me to the jsp page with form)
I get an error 'No bean found under attribute key userForm'
I would appreciate any suggestion related to this problem.
Thank you for your time.
Best of luck,
Yuriy Zubarev
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/