struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <Abdullah.Jib...@aeroxchange.com>
Subject RE: Navigation Problem
Date Wed, 22 Jun 2005 21:32:53 GMT
I have not used it yet, but you may want to take a look at spring web flow, it is designed
for these 'wizard' scenarios, and supposedly integrates well with struts.

If you want to use Struts components only, one suggestion:

1 big action
1 big action form
Several jsps

The jsp form always posts to the same action, which then figures out its state, based on that
validates the input, does its stuff and forwards to the right jsp.

-----Original Message-----
From: Clint Shank [mailto:clintshank@hotmail.com]
Sent: Wednesday, June 22, 2005 4:18 PM
To: user@struts.apache.org
Subject: Navigation Problem


We have a struts app that gathers data screen by screen and then processes 
the data at the end.  On each screen is a previous and next button.  The 
possible screens in the workflow depend on certain state: what things the 
user has chosen so far, the user's preferences and so on.  My question is... 
suppose the user is on a screen and hits next.  He could go to one of many 
screens depending on the state mentioned above.  That is, some screens apply 
and some don't.  We're trying to think of an elegant solution, but for now, 
we're thinking there is a nextFromScreenA kind of action that looks at the 
state and figures out what to do and where to go next.  Do you know of any 
better solutions for this type of scenario?

Thanks,

Clint Shank



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message