Now if something goes wrong in step1 the page HostNewInvitation_step1.jsp correctly gets displayed with correct errormsgs.
But how do I get page HostNewInvitation_step2.jsp invoked if something goes wrong in step 2 ?? There is only one input element in this tag. I tried: input="/processinvitation?action=validate" with a validate() method added to my action class, but that does not work.
How do you tackle this problem in general ?
Thanks in advance !
[ August 08, 2005: Message edited by: Jan van Doorn ] [ September 01, 2005: Message edited by: Jan van Doorn ]
One possibility would be to define an action for each page of the wizard (e.g. processInvitation_p1, processInvitation_p2, etc). You can still use the same action class and form bean; just define different paths and different input JSPs. Then change the action of the form in each JSP to match the new action definitions. If you don't want to redefine the forwards for each action, you can make them global forwards.