The page that it has to redirect to always has always been filled in before. When the page is shown, all the form fields should be empty. I tried to accomplish that in my servlet by deleting the form bean (userBean). But all the fields still have values so this appears not to be working. Is it so that the struts tags themselves remember the previously entered values? How can I make sure that the values are deleted when this page is shown?
Thanks for your advice! [ November 27, 2006: Message edited by: Tim Storms ]
SCJP 1.5, SCWCD 1.4, SCBCD 5
posted 9 years ago
It sounds like you have your actions configured to use session scope. In that case that is one use for the "reset" method on your form. Struts will call this method an you can set the values back to defaults.