Assuming you're using struts validator, this goes in your ActionForm class:
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = super.validate(mapping, request);
if (errors != null) {
setPassword(null);
}
return errors;
}
----- Original Message -----
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2003 4:44 AM
Subject: ActionForm and password fields.
> Hi,
> How to tell struts that I dont want to display the password if
> validation fails ? What about other form elements ?
>
> rgds
> Antony Paul.
>
>
> ---------------------------------------------------------------------
> 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]