I would have thought that something as simple as a wizard would be easily doable...I would like to keep away from the session as much as possible...
I am using one action for the whole flow, but many action mappings... Something like this so far... <action name="page1" .../> <action name="page1Submit" .../> <action name="page2" .../> <action name="page2Submit .../> <action name="page3" .../> <action name="page3Submit .../> One action for the view (jsp), and one action for the submit of it...Not sure if this is the best way to go about it, and even with this way, I am having some problems with validation and redirecting to the correct input page, etc etc... Any other suggestions or tips are appreciated... Charbel -----Original Message----- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 11:12 AM To: 'Struts Users Mailing List' Subject: Re: Best practice - Wizard flow I know you said you didn't like sessions, but they're the only clean way of doing things stateful things between stateless pages. -----Original Message----- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 16:10 To: 'Struts Users Mailing List' Subject: RE: Best practice - Wizard flow Store the values in the session and clear them down when the user either completes the wizard or restarts it? -----Original Message----- From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 16:04 To: Struts Users Mailing List Subject: RE: Best practice - Wizard flow I would like to keep away from this method... Any other suggestions??? -----Original Message----- From: Lance [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 10:49 AM To: Struts Users Mailing List Subject: Re: Best practice - Wizard flow Why not draw all 3 pages but hide 2 of them and javascript the next page on and off. All pages inside the same form, last page submits. Charbel Abdul-Massih wrote: > I am developing a wizard type flow with 3 pages in the wizard... > > > > We'll call them page 1, page 2, and page 3... > > > > I need users to be able to navigate between pages with a next/previous > button, without losing any data that was entered in any of the pages. > The last submit from page 3 will store everything to the database. > > > > What is the best way to model this in struts.xml...ie: how many action > mappings is recommended. Do I have one action mapping for the view, and > one for each submit??? I would like to keep away from the session if > possible. > > > > Any suggestions would be appreciated. > > > > Thanks, > > Charbel > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]