You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mallik <ma...@yahoo.com> on 2006/12/11 11:05:45 UTC

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--tf2792982.html#a7792121
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org