Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wizard flow examples?

 
Ss Wooly
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using session as the scope
 
Junilu Lacar
Bartender
Posts: 7587
53
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Satish Kulkarni
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are there any Wizard Flow examples that I can refere to..

-Satish
 
Satish Kulkarni
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Junilu,
Can you please elobrate on how you achieved the wizard flow with struts...

thanks


Regards,
Satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic