--- Jim Barrows <[EMAIL PROTECTED]> wrote:

> 
> 
> > -----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.

nice!  i can see it work very well.  i didn't know about
struts-workflow but i'll check it out.

thanks, Jim!

woodchuck


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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

Reply via email to