When you say you click the "Back" button on JSP2, do you mean the browser's back button or do you have an html button called "Back" button on your page? If you are using the browser's back button this won't work since you'll either get the cached version of the previous page or it will resubmit the request for the previous page, either way your selections on the second page will be ignored. If you have an html button that you created then you could use that to submit the form for page 2 to your app and then your app can take the data and and use it for the JSP for page 1.
Hope this helps.
Joined: Oct 27, 2009
Yes I have a html back button...
On click of back in JSP-2 am submitting it to the jsp-1..Now how will I transfer my JS values?(what should be done in jsp1 to ensure that the values are falling in right place when back is clicked on jsp2?
I would try that showModalDialog...
Joined: Aug 29, 2008
After that you just need to map the values from JSP2 to the fields you want them in in JSP1 in your action class. If you are just going straight to your JSP then you'll need to get them from the request object.