Mark,

The elegant way of doing something like this within struts is to
create a separate action for each JSP. If you want the three JSP pages
to use common code, simply create a base action class that each jsp's
action class extends.

That would be my suggestion. 

Paul

-------------- Original Message ----------------
From: Marc <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue, 7 Dec 2004 14:12:40 +0000 (UTC)
Subject: two step wizard like interface
Hi there. Help a struts rookie pls.

I have successfully implemented a two step wizard like interface where I have
A.jsp for the first step and B.jsp for the second step.

But now I need an ability to dynamically change the jsp file at the step 2
based on a field selection during step 1 !
In other words at step two I might need either B.jsp or C.jsp.
All three jsp files post to the same action class but are processed by
different methods(I use DispatchAction and different method names). My problem
is the form bean class. Currently it has getters/setters for all three jsps
and this is exactly what I do not want to do.

Is there a more elegant way of doing this ? Can I use different form beans and
yet use the same action class ?

Thanks in advance.

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

Reply via email to