Keeping values after refreshing...
Posted on 2004-09-07
Hi, I am creating a jsp file that has a checkbox and a select box. There are also two buttons: one "Run" button that will run something give the choices in the checkbox and select box, and the second "Apply Settings" button applies the settings so that if a user presses the "Run" button, the choices that the user picked right before clicking apply settings will be in affect. Is there a way to keep the choices selected (choices that the user choose after clicking the "Apply Settings" button) even when the user performs a refresh on the page? Currently, if the user clicks refresh, all the default values are selected.
If possible, please provide some sample code. Any comments or suggestions are well appreciated.