> -----Original Message----- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 10:18 AM > To: Struts Users Mailing List > Subject: RE: struts servlet chaining and immutable request? > > > > --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > > > -----Original Message----- > > > From: Woodchuck [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, September 02, 2004 10:02 AM > > > To: struts > > > Subject: struts servlet chaining and immutable request? > > > > > > <snip/>
> > are there better strategies to handle "wizard" scenarios in struts? > > so in my abstract Action class i'm looking at the button paramter, if > it's "Next" i will call an abstract Save method that the super class > implements. then i will forward to the next Action screen (same > abstract class).. but the request parameter button still says > "Next" so > it keeps going next forever... :/ typically I use only one action class and one form class for my wizards. On each form is a hidden page attribute. Each page in the wizard goes back to the same action. This makes validation easy, and next/back even easier. If next, then I forward to "page"+form.getPage()+1, if back then I subtract one. All my forwards are page1, page2, page3 etc. I have also used struts-workflow to lock a user into the wizard flow, so I dont' have to do that. See struts-workflow for details. > > > > > > > > > > > > (if you're wondering why my Actions are setup like this, it's > > because > > > they all extend the same abstract Action class that has > logic to do > > > processing based on the request parameter... so what's really > > > happening > > > is that each Action is executing the same thing but i'd like > > > to be able > > > to have them do different things) > > > > > > any suggestions is much appreciated and thanks in advance, > > > > > > woodchuck > > > > > > > > > > > > > > > _______________________________ > > > Do you Yahoo!? > > > Express yourself with Y! Messenger! Free. Download now. > > > http://messenger.yahoo.com > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > > > > _______________________________ > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > http://promotions.yahoo.com/goldrush > > --------------------------------------------------------------------- > 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]