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!

clear actionforms in actions - struts

843838Mar 29 2006 — edited Mar 29 2006
i add details in a database from a jsp using struts. now when i come to my action i store the data and want to go back to the same page. but before i do that the existing data in my actionform i need to clear it otherwise the existing data will persist in the jsp form.

so i would like to know how to clear it

A sample code is

public class ActionNew extends Action {

public execute(ActionForm form, actionMapping map .......) {
//get the actionform
Prop prop = (Prop)form;

//store data

//clear the form -- please give this code
}
}

if there is any other solution please

thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2006
Added on Mar 29 2006
1 comment
214 views