Did you override the reset() method?. Abstract ActionForm has no implementation for reset() method; if you want to set the values to be blank/default values on reset() method call - override reset() method. public abstract class ActionForm implements Serializable { .... .... .... public void reset(ActionMapping mapping, HttpServletRequest request) {
; // Default implementation does nothing } } BTW, this w.r.t struts 1.2.4 Chandra -----Original Message----- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 3:36 PM To: user@struts.apache.org Subject: calling bean reset() in Action class? Hi friends i have a form that contain some text fields where user enters data and click save, then i am saving and returning to the same page. here the previous values are redisplaying(which should not) even succefully added to database. for this i feel that by calling reset method of form bean we can overcome. i did it but failed . this is my code:(part of action class) ------------------------------------------------------------------------ ----------------- DynaValidatorForm df = (DynaValidatorForm)form; df.reset(mapping,request); return mapping.findForward("saved"); ------------------------------------------------------------------------ ------------------ where i did mistake or is this right way or any other to do this help me please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/calling-bean-reset%28%29-in-Action-class--tf279298 2.html#a7792121 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]