• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

single actionform bean spans multiple jsp pages

 
Poorav Chaudhari
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a single actionform bean that is spanning multiple jsp pages, I also want to give the user the capability of jumping between the jsp pages in whichever order they wish. but the data once entered should persist till they hit the save button. what is happening in my case is that i am passing a populated bean to the first page of the four jsp pages i have. the first page is populated, but when i go to the next page, the second page does not have any values. If i was directing to the second page first then the second page comes up fine but going to first page from the second page i am losing all my data. I hope that explains my situation clearly enough. can someone give me suggestions of what is should do. I thought about keeping hidden fields, but that doesn't seem the best solution especially since each form page i have is rather large.

Thanks in advance.

Poorav
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try storing the bean in Session context.
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this in the struts-config.xml or in the Action servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic