struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paweł Wielgus" <poulw...@gmail.com>
Subject Re: Struts2: Carry parameters into following jsp/action
Date Sat, 06 Dec 2008 14:09:11 GMT
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 <rsolomon@n-able.com>:
> 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
>
> rsolomon@n-able.com
> Tel: (613) 592-6676 x 301
> Toll Free: 877-655-4689 x 301
> Fax: (613) 592-2242
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Mime
View raw message