Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

calling bean reset() in Action class?

Mallik

2006-12-11



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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.