Re: How to clear DynaActionForm?

2005-11-09 Thread pc leung
Thnx On 11/9/05, Hubert Rabago [EMAIL PROTECTED] wrote: You can set the form's scope to request. This way, the values don't survive from one request to the next. Hubert On 11/8/05, pc leung [EMAIL PROTECTED] wrote: even the following cannot clear fields in form-bean

Re: How to clear DynaActionForm?

2005-11-08 Thread Laurie Harper
The default implementation of reset() doesn't actually reset any properties. If you need it to do so, you'll have to subclass DynaValidatorForm and override the reset() method. Althernatively, you can clear a dyna form by clearing the Map object it contains: form.getMap().clear(). HTH, L.

Re: How to clear DynaActionForm?

2005-11-08 Thread Hubert Rabago
You can set the form's scope to request. This way, the values don't survive from one request to the next. Hubert On 11/8/05, pc leung [EMAIL PROTECTED] wrote: even the following cannot clear fields in form-bean name=userProfileForm type=org.apache.struts.validator.DynaValidatorForm

How to clear DynaActionForm?

2005-11-07 Thread pc leung
struts-config.xml: form-bean name=userProfileForm type=org.apache.struts.validator.DynaValidatorForm DispatchAction class: DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.reset(mapping, request); return mapping.findForward(success); The reset function does not clear