Maintaining form data across pages...

A

Ashraf Fouad

Dears,
I am trying to setup a series of jsp pages (requestForm, confrimation
jsp).
I set the scope of my requestForm to "session" as to maintain the data
across the various jsps, but I get it as if reset is called, after
the confirmation page submits.
What is the best way to maintain the request data across several jsp
pages, speically I have lots of pages as step 1, step 2, step 3 before
submiting the action, with different form beans.


Thanks, best regards

Ashraf Fouad
 
R

Ryan Stewart

Ashraf Fouad said:
Dears,
I am trying to setup a series of jsp pages (requestForm, confrimation
jsp).
I set the scope of my requestForm to "session" as to maintain the data
across the various jsps, but I get it as if reset is called, after
the confirmation page submits.
What is the best way to maintain the request data across several jsp
pages, speically I have lots of pages as step 1, step 2, step 3 before
submiting the action, with different form beans.
The reset method *is* called. From the docs: "This method is called before
the properties are repopulated by the controller servlet." You have to add
some logic to only reset what you want when you want it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top