LO I need to make a multi-step form.
I have a problem between 2 step (2 JSP Form). the user fill the form of step 1 (1.jsp) and submit to Action1 Action1 stores the data provided by the user and this same action have to fill a second form data shown by the second JSP (2.jsp). i made this mappings in struts-config : <action path="step1" type="step1" name="1Form" input="1.jsp" validate="true"> <forward name="step2" path="2.jsp"></forward> </action> public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { ActionErrors errors = new ActionErrors(); ActionForward forward = new ActionForward(); 1Form formulaire = (1Form) form; 2Form form2 = new 2Form(); form2.setData1("test"); request.setAttribute("2Form",form2); forward = mapping.findForward("step2"); ... But at step2 ("2.jsp") my <html:text property="data1"/> is empty. So give me any solution if you have it please i found a solution with i second action but i don't like it : the first action maps with the "1Form" and forward to the second action that maps with the "2Form" so making this line : "2Form formulaire = (2Form) form;" in the perform method of the second action fix my problem. ------------------------------ Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. This message is protected by the secrecy of correspondence rules ; furthermore it may contain privileged or confidential information that is protected by law, notably by the secrecy of business relations rule ; it is intended solely for the attention of the addressee . Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein is strictly prohibited without prior consent. Any electronic message is susceptible to alteration and its integrity can not be assured. AGF declines any responsibility for this message in the event of alteration or falsification.. If you are not the intended recipient, please destroy it immediately and notify the sender of the wrong delivery and the mail deletion. ------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]