I have a set of functionality that must have a scope of session. What I want to do is get rid of any values that were entered in some of the text fields when I come back to a particular page. Since the scope is session, if I entered in a Social Sec number in a text box, if I submit the page and then come back, the SSN is still being displayed and I want it to be gone. Any suggestions on the correct way to go about doing this?
If you are using Struts MVC model, then you should not be directly accessing a JSP page from the browser. It should go through some sort of action or forward. The reasoning would then be you would simply reset the values of the form as part of the action before it forwards to your JSP.