JSP Form data lost while back to same Action (struts 2)
Joined: Jun 23, 2009
I have to action classes, say Test1 and Test 2 and two jsp pages,say jsp1 and jsp2, while jsp1 is related to Test1 and jsp2 is related to Test2. And the page flow is like , first the user will enter some data in jsp1 and click on next to go to the next page(jsp2) and also we have to display some of the fields entered injsp1. So I have extended Test2 to Test1, so that Test2 will contains all the commons fields and respective setters and getters.
As expected, on click on the next button, the data the jsp1 data is getting dispalyed in jsp2.Now while I'm trying to post the data from jsp2 and as a result users are reditected to the same page , jsp2, all the fields(inherited from Test1) are vanising.