This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes wizard flow examples? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "wizard flow examples?" Watch "wizard flow examples?" New topic
Author

wizard flow examples?

Ss Wooly
Greenhorn

Joined: Aug 07, 2003
Posts: 2
Please could somebody direct me to some complete wizard flow examples using just one Action and ActionForm from multiple pages and updating and collecting informtion throughout the pages?
So, from page 1 you enter in some name, when you get to page 2, you should still be able to access this name and add or update more information (in ActionForm), that should still be able to see in page 3. When using request scope, this doesn't seem to happen, so I was hoping for an example.
Thanks a lot.
Thomas Thomas
Greenhorn

Joined: Jun 17, 2003
Posts: 28
Try using session as the scope
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

The cleanest way I have tried is to encapsulate all wizard fields in a separate object.
Then you'll have tags that look like this:

Since your wizard object will be a field in your action form and the action form has a session scope, values you entered in previous pages will be retained.
[ August 12, 2003: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions]
Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Hi,
Are there any Wizard Flow examples that I can refere to..

-Satish
Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Hi Junilu,
Can you please elobrate on how you achieved the wizard flow with struts...

thanks


Regards,
Satish
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: wizard flow examples?
 
Similar Threads
Display Check Boxes & Dropdowns in Struts with search results
problem with registration page
Display Check Boxes & Dropdowns in Struts with search results
Struts Design Question
DynaValidatorForm and Wizards