View Full Version : JSP page should not reloaded after clicking browser's back button

05-15-2008, 02:10 PM
I am developing an application in struts.I have a dropdown box in a jsp page named as "first.jsp"which is retirieving data from database and some text fields in which some data is entered.After submiting it it goes on another JSP page named as "second.jsp".Now from "second.jsp". if I Click on browser's Back Button then the data of first.jsp is reloaded(again it fatches the values from database).I want that the data I Selected in dropdown box previously should remain selected.

05-15-2008, 07:26 PM
you need to store the selected value in the session and use it to select the appropriate item when the first jsp is loaded again