Re: ActionForm and password fields.

2003-12-08 Thread Jerome Curlier
You could use the redisplay attribute:



Jerome

"Antony Paul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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]



Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
Sorry, I have no experience w/ DynaActionForms. Someone else is going to
have to field this one - anybody?


- Original Message - 
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2003 5:00 AM
Subject: Re: ActionForm and password fields.


> Thanks for reply. So for all the fields that I dont want to display set
that
> to null. What if it is DynaActionForm. I dont use validator because I am
> porting an application to Struts of which 20% is completed and we have
> written  JavaScript for it.
>
> rgds.
> Antony Paul.
> - Original Message -
> From: "David Chelimsky" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, December 08, 2003 4:18 PM
> Subject: Re: ActionForm and password fields.
>
>
> > 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]
> >
> >
>
> -
> 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]



Re: ActionForm and password fields.

2003-12-08 Thread Antony Paul
Thanks for reply. So for all the fields that I dont want to display set that
to null. What if it is DynaActionForm. I dont use validator because I am
porting an application to Struts of which 20% is completed and we have
written  JavaScript for it.

rgds.
Antony Paul.
- Original Message -
From: "David Chelimsky" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2003 4:18 PM
Subject: Re: ActionForm and password fields.


> 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]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
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]



ActionForm and password fields.

2003-12-08 Thread Antony Paul
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]