struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <>
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 []
Sent: Wednesday, June 22, 2005 4:18 PM
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?


Clint Shank

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message