Hi all,
if this first form is very simple i would use hidden fields in second form.

Best greetings,
Paweł Wielgus.

2008/12/5 Radu Solomon <[EMAIL PROTECTED]>:
> You could use ScopedModelDriven with your Model defined to hold all your 
> properties name, age, height, hair color and eye color.
>
> I have been using this for two wizards and it works very nicely. You do not 
> need to worry about persisting the model between pages, let the framework do 
> it for you.
>
> Hope this helps.
>
> ----------------------------------------------
> Radu Solomon
> Software Developer
> N-able Technologies(r)
> 450 March Road, 4th Floor
> Ottawa, Ontario
> K2K 3K2
> www.n-able.com
>
> [EMAIL PROTECTED]
> Tel: (613) 592-6676 x 301
> Toll Free: 877-655-4689 x 301
> Fax: (613) 592-2242
>
> -----Original Message-----
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: December 5, 2008 1:57 PM
> To: Struts Users Mailing List
> Subject: Re: Struts2: Carry parameters into following jsp/action
>
> The quickest/easiest solutions are chaining (boo hiss) or just keeping a form 
> model in the session like in any other framework.
>
> Dave
>
> --- On Fri, 12/5/08, Peterson, Ryan wrote:
>> I have a form filled out that may require additional info,
>> which I have
>> a 2nd jsp form for.  How can I carry over the already
>> entered parameters
>> from the first form to the second, so that all info may be
>> submitted to
>> an action.
>>
>>
>>
>> For example: data is collected from form1.jsp.  Say name,
>> age, height
>>
>> This is submitted and determined to need form2.jsp, which
>> would then ask
>> for hair color and eye color.
>>
>>
>>
>> From form1, "form2.action" is called upon submit,
>> which in my struts.xml
>> is:
>>
>>
>>
>> <action name="form2">
>>
>>             <result>.../form2.jsp</result>
>>
>> </action>
>>
>>
>>
>> How can I carry over the name, age, and height from form 1
>> to 2?  Then
>> once it is there, are hidden fields the best method to have
>> all of the
>> information submitted to the final action?
>
>
> ---------------------------------------------------------------------
> 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]
>
>

Reply via email to