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
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.
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
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
4 matches
Mail list logo