Hi all, I am converting Wizard workflow into Struts framework. Wizard page contains next,back,finish buttons. I am considering 2 approches..
1) /PrepareStep1.do -- step1Form --> forward to step1.jsp step2.jsp on next ---> ProcessStep1.do /ProcessStep1.do --step1Form -->on success /PrepareStep2.do /PrepareStep2.do --step2Form --> on success forword to step2.jsp step2.jsp on next ---> ProcessStep2.do on back ---> PrepareStep3.do /ProcessStep2.do --step2Form --> /PrepareStep3.do PrepareStep1 will fill the form step1Form to render the jsp page step1.jsp . step1.jsp on submit forwrd to /ProcessStep1.do . /ProcessStep1.do on success forward to /PrepareStep3.do . and so one... Each ProcessAction will save the data from Form to Business object. 2) One common ActionForm (session scope) will be used be all actions. /PrepareStep1.do -- commonForm --> forward to step1.jsp --> /ProcessStep1AndPrepareStep2.do ---> step2.jsp ----> /ProcessStep2AndPrepareStep3.do I read somewhere that DispatchAction with common Form is suitable for Wizard workFlow applications. My wizarsd must support next,back. ---------------- Which approch is better? on the following points 1> Extesion of wozard steps.(may be in between the old steps) 2> Maintenance Can any body tell me the advantage and disadvantage of both of these approach. Waiting for suggetion Thanks & Regard Swapnil