Hi!
I'm trying to use the request scope for a wizard-like form, spread over several pages. By using the request scope, I want to avoid side-effects detected by using session scope.
The problem is, that the data gets lost, no matter what I do. The form is submitted to an action where the data is still there. At the end of the action, I put the FormBean back into the request scope by using
Unfortunately the data is lost nevertheless on the next page/action.
Is it right, that I MUST use session scope for multi-request forms or is there something else wrong in my code? I think Struts reinitializes the FormBean, right?
I appreciate every hint, thanks!
Ben
I'm trying to use the request scope for a wizard-like form, spread over several pages. By using the request scope, I want to avoid side-effects detected by using session scope.
The problem is, that the data gets lost, no matter what I do. The form is submitted to an action where the data is still there. At the end of the action, I put the FormBean back into the request scope by using
Code:
request.setAttribute("formBean", formBean);
Unfortunately the data is lost nevertheless on the next page/action.
Is it right, that I MUST use session scope for multi-request forms or is there something else wrong in my code? I think Struts reinitializes the FormBean, right?
I appreciate every hint, thanks!
Ben