| Author |
single actionform bean spans multiple jsp pages
|
Poorav Chaudhari
Ranch Hand
Joined: Sep 17, 2002
Posts: 50
|
|
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
|
Poorav Chaudhari
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14571
|
|
|
Try storing the bean in Session context.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Joined: Jun 29, 2001
Posts: 192
|
|
|
You can do this in the struts-config.xml or in the Action servlet.
|
 |
 |
|
|
subject: single actionform bean spans multiple jsp pages
|
|
|