I have a jsp having drop down box and empty table. This table gets populated on basis of option selected from drop down and clicking button called Search which hits database. This drop down i am populating dynamically from database using Select and option. My issue is once i have selected an option from drop down say A and clicked on search button the JSP refreshes and populates table below. However i want the option B to be visible in drop down after the page has refreshed. This is not happening and everytime page refreshes the original option of drop down is back in focus.