Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JSP page should not reloaded after clicking browser's back button

    hi
    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.

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    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
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •