Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Clearing a Struts DynaActionForm after use

843836Jan 5 2005 — edited Jan 6 2005
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 3 2005
Added on Jan 5 2005
1 comment
103 views