On Tue, 21 Aug 2001, Glenn Kidd wrote:

> Hi,
>
> My are currently starting the process of implementing Struts at my company
> for a wizard-like configuration tool with a JSP front end.  We plan on using
> one ActionForm for the entire workflow but my immediate impression from the
> documentation that I have read is that I need to use a different Action for
> each step in the Wizard.  This seems a bit messy to me and I was wondering
> if someone can show me the error of my ways.  Is there a way to use 1
> ActionForm and one Action class that is smart and is aware of where in the
> workflow the wizard is, so it can display the appropriate view?  Any
> information or suggestions on how anyone else is implementing this will be
> greatly appreciated.  Thanks in advance.
>

It seems reasonable to me to use either a single Action or multiple
Actions for this, along with your single ActionForm.  With a single
Action, you will of course need some hidden field or something that tells
the Action which logical page it is on.

There is some active work going on (for Struts 1.1) to develop an ability
to script wizard style interactions (so you don't have to manage the
navigation yourself)  -- and the most likely implemenation strategy will
end up doing the same thing (flowing the entire interaction for a
particular wizard through a single Action instance).

>
>
> Glenn Kidd
>

Craig


Reply via email to