I've discovered that the best Wizard approach so far is to:

- create a WizardAction (which has getters and setters for your beans -
which are stored in the user's session)
- each page action of the Wizard then extends the WizardAction (eg
Page2Action extends WizardAction)
- then in your actions.xml, set the success view of the Page1Action to
Page2Action!default.action (or whatever)

My $0.02

-mike

On 3/5/02 8:14 AM, "Matt Baldree" ([EMAIL PROTECTED]) penned the words:

> I don't think anybody answered you on this. Its quite common to use hidden
> tags to store the values as they are passed form to form.
> 
> 
> ----- Original Message -----
> From: "yes I am" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 29, 2002 9:22 AM
> Subject: [Webwork-user] wizard behaviour with webwork
> 
> 
>> hi everybody
>> 
>> I've implemented a wizard like data entry form:
>> with page1.jsp, page2.jsp and page3.jsp.
>> 
>> since it is possible to finish the data entry before
>> having reached page3. I have 3 submit buttons: prev, next
>> and finish.
>> 
>> all 3 are mapped to commands in an action:
>> 
>> <action name="MyAction" alias="dataentry">
>> <command name="wizard" alias="page1">
>>   <view name="input">html/page1.jsp</view>
>>   <view name="success">html/page2.jsp</view>
>>   <view name="error">html/page1.jsp</view>
>> </command>
>> <command name="wizard" alias="page2">
>>   <view name="input">html/page2.jsp</view>
>>   <view name="success">html/page3.jsp</view>
>>   <view name="error">html/page1.jsp</view>
>> </command>
>> <command name="wizard" alias="page3">
>>   <view name="input">html/page3.jsp</view>
>>   <view name="success">html/page4.jsp</view>
>>   <view name="error">html/page2.jsp</view>
>> </command>
>> ..
>> 
>> the problem is that on switching from one
>> page to the other I loose my entered data.
>> 
>> do I have to put it in the session object or does
>> webwork offer me a better solution?
>> 
>> TIA.
>> 
>> cheers
>> -claudio
>> 
>> 
>> _________________________________________________________________
>> Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt.
>> http://www.hotmail.com
>> 
>> 
>> _______________________________________________
>> Webwork-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/webwork-user
>> 
>> 
> 
> 
> 
> _______________________________________________________________
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to