You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Citron-Pousty <St...@yale.edu> on 2003/03/30 23:43:30 UTC
Validation for anything other than html:text
Greetings all:
How do you validate a html:select or html:radio for required using the
validator plugin.
All the doco deals with html:text. I found some old postings but they
didn't really explain how to do this.
I tried it out and it doesn't seem to work. I want the form to return an
error if the user forgets to pick something off the select list.
I printed out what was in the request for the select list and its a
blank or null, which, according to the javaDoc should fail for a
required field.
Thanks for your help,
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Validation for anything other than html:text
Posted by Dan Tran <da...@hotmail.com>.
Required select works for me! do you have the normal text file validation
working ?
-Dan
----- Original Message -----
From: "Steven Citron-Pousty" <St...@yale.edu>
To: "struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 1:43 PM
Subject: Validation for anything other than html:text
> Greetings all:
> How do you validate a html:select or html:radio for required using the
> validator plugin.
> All the doco deals with html:text. I found some old postings but they
> didn't really explain how to do this.
> I tried it out and it doesn't seem to work. I want the form to return an
> error if the user forgets to pick something off the select list.
> I printed out what was in the request for the select list and its a
> blank or null, which, according to the javaDoc should fail for a
> required field.
> Thanks for your help,
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org