Deep Chand wrote:

I'm new to Struts. I've a form asking for customer data with fields
like name, address etc.  What I want is this kind of flow/design:

Page1) Customer enters their info. Submit button will take them to Page2.
Page2) They are asked to verify the same info again with read only
fields. Two buttons will be there, Confirm/Submit and Change. Change
will take them to Page1 and Confirm/Submit will take them to Page3.
Page3) The info is displayed to them again after entering it into the DB.

So, my question is do I need three JSP pages for this kind of design
or is their any other way to just do it with two JSP pages. One for
entering data and other for Page2 and Page3.

Please reply.

Take a look at struts-layout - http://struts.application-servers.com/. Using it you can have only one jsp for both page 1 and page 2 (form mode changes) - using it saves you the time to synch changes between page 1 and page 2. You can specify the form mode in your action class depending on the submit parameter for example.
Borislav

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to