how to retain selected value of dropdown in jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • techbytes
    New Member
    • May 2010
    • 36

    how to retain selected value of dropdown in jsp

    hi,

    I have 2 dropdowns ,after populating the dropdown with selected values,the page is refreshed.
    so the selected value in the dropdown is not retained in the dropdown list.
    I want to retain the selected value in the dropdown after the form is submitted.
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    You have to save the values in session or submit those values as a parameter and during the page load you have to check for that value. Using scripts you can set the values in the combo.

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    Working...