You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Scott Van Wart <sc...@indosoft.ca> on 2006/06/22 18:45:36 UTC
html:password not listening to value attribute
Hi,
I have a LazyValidatorForm with a "password" property. I always want
this input field to be blank when the page loads. I also can't clear
the value out of the form in Java (code is too generic and I'd rather
not hack it for this single case). So I tried:
<html:password property="password" value="" />
But the password shows up in the field anyways... [***** ] and all
that fun stuff.
I don't mind clearing the property in the .jsp, but after finding out
how to get properties out of a LazyValidatorForm (${form.map.property}),
I find I don't know how to SET the property of a LazyValidatorForm
(JSTL/Struts taglibs/jsp: directives are all fine) in a .jsp. Ideas?
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:password not listening to value attribute
Posted by Scott Van Wart <sc...@indosoft.ca>.
Niall Pemberton wrote:
> Its a DynaBean - just use set("password", "")
Yeah but I'd rather not do it in Java, for various reasons...
- Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:password not listening to value attribute
Posted by Niall Pemberton <ni...@gmail.com>.
Its a DynaBean - just use set("password", "")
Niall
On 6/22/06, Scott Van Wart <sc...@indosoft.ca> wrote:
> Hi,
>
> I have a LazyValidatorForm with a "password" property. I always want
> this input field to be blank when the page loads. I also can't clear
> the value out of the form in Java (code is too generic and I'd rather
> not hack it for this single case). So I tried:
>
> <html:password property="password" value="" />
>
> But the password shows up in the field anyways... [***** ] and all
> that fun stuff.
>
> I don't mind clearing the property in the .jsp, but after finding out
> how to get properties out of a LazyValidatorForm (${form.map.property}),
> I find I don't know how to SET the property of a LazyValidatorForm
> (JSTL/Struts taglibs/jsp: directives are all fine) in a .jsp. Ideas?
>
> Thanks,
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org