Clearing a Struts DynaActionForm after use
843836Jan 5 2005 — edited Jan 6 2005Hi, i'm trying to learn struts but having the following problem
My application displays a form that when submitted creates a "widget" in a database. If successful the application redirects to another page, but it is possible for the user to return to the create widget page as many times as they like. The problem is that after the first time the previously entered details are redisplayed, but really they should be blank.
The form has been set up to use a ValidatorDynaActionForm and I have set the form bean scope to "session" in order to redisplay data in the event of validation errors.
What is the correct way to ensure that the form is always blank except when being automatically returned to in the event of validation errors?
Thanks for your help