You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zheng Wen Zhe <zw...@espatial.com> on 2006/04/21 12:11:59 UTC
validate two password fields,how?
Hey all,
I have two password fields, and I wanna validate those two fields containing
same data.
Is there any key word, I could use (like 'required')? Or I have to add a new
javascript in validator-rules.xml?
Regards,
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: validate two password fields,how?
Posted by Ted Husted <te...@gmail.com>.
Yes, you can use "validwhen" for this:
* http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html#validwhen
HTH, Ted.
On 4/21/06, Zheng Wen Zhe <zw...@espatial.com> wrote:
> Hey all,
> I have two password fields, and I wanna validate those two fields containing
> same data.
> Is there any key word, I could use (like 'required')? Or I have to add a new
> javascript in validator-rules.xml?
>
> Regards,
>
> Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org