Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple JSP pages with Single Action class & form beans

843840Aug 21 2007 — edited Aug 27 2007
Hi Folks,

I need to implement a wizard-like functionality. Basically, it will contain 3 steps in separate JSP pages & the third page is where we need to submit the data that is entered in all three pages.
In each of these pages, there is 'previous' & 'next' button, which means I need to retain values in each of these pages if the user would like to 'go back' after a certain validation error in the current page.

I am planning to have a single form bean & single action class to implement the above functionality.

Listed below are my initial thoughts on how to go about implementing this. Experts in this forum, please help me if I have gone wrong in my thoughts...
1. I need to have three different action mapping entries (in struts-config.xml file) each for buttons in each of the pages?
2. I can use the same form & same action class for ALL the action mapping entries & keep the scope in 'session'?
3. In each of the three JSPs, I can have a <html:form> tag which maps to the same form?
4. How would be the validation in each specific form be possible?

If anyone has come across such scripts, appreciate if you can provide me the reference. Also, if you think this is a bit more tedious than creating 3 form beans / 3 action classes, please advise.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2007
Added on Aug 21 2007
9 comments
942 views