I am currently working on a web application which basically is a series of jsp pages that can be accessed using previous and next buttons on each page. This application is a struts application.
I have a particular page called Physicians page that has a checkbox. The user is supposed to check the box if they do not have Physician information. If the checkbox is not checked then the page displays the other fields where the user can enter the physician information. However, if the checkbox is checked, then all the other fields are hidden.
Here's what I need help with: Let's suppose that the user reaches the physician page and checks the box. This indicates that he does not have physician information and all the other field are hidden on the page. Now the user clicks on the next button and reaches the next page. Now let us assume that the user clicks on the previous button on the new page to reach the Physicians page again. I want the Physicians page to appear exactly as it was before ie with the checkbox checked. How can this be done?
Any suggestions or comments will be highly appreciated.