struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
Subject Re: Validate an hmt:select with validator framework
Date Mon, 25 Sep 2006 21:15:04 GMT
On 9/25/06, Heidy Gutiérrez Guzmán <heidyguti@gmail.com> wrote:

> I need to validate an html:select with validator framework

> <html:option value="null">---</html:option>
>
> I tried to use the required validation, but that does'nt work, i think
> because the html:select have the "---" default value

More likely it's because you have value="null", which is the String
"null", not the null value.

Try using <html:option value="">---</html:option> with the required
validator and see if that works.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message