Thanx Allen! Your explanations is clear enough.
-----Mensaje original----- De: Fogleson, Allen [mailto:[EMAIL PROTECTED] Enviado el: martes, 05 de octubre de 2004 18:30 Para: 'Struts Users Mailing List' Asunto: RE: input form Freddy, You want to use the formName that you gave in the struts-config.xml in general. Here is a short example. Assume TestForm is an actionform named "testForm" in the struts-config.xml. In the action class you would do something like this.... public Actionforward execute(...) { . . . TestForm form1 = new TestForm(); . . . populate the form here . . . request.setAttribute("testForm", form1); return mapping.findForward("success"); } When you enter the page mapped as the input for the actionClass (that you are submitting to) Struts will look up the action form from the request. Note that if you set the form to session scope in the struts-config you would of course have to do a request.getSession().setAttribute() versus the request.setAttribute() The flow is something like this User ---requests----> action.do ----populates and forwards to jsp ----> displays with form filled in ------submit----> action2.do Action1.do is the initial action class above and action2.do is the action where you are going to act on the submitted data. Al p.s. if you need an example I can probably strip one down and send it to you direct, just let me know. -----Original Message----- From: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 11:28 AM To: Struts Users Mailing List Subject: RE: input form Hi, Allen... I have a similar question: when you say create the action form and put it into request scope... I suppose you refer to the same ActionForm that will be used when, say, saving that prepopulated form again (the changes you've made). Right? Then, what I'm not really sure is this: should I put that object with any key I want, use an specific key or do I have to use a particular Class / Method for doing so? Thanx, Freddy. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]