struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <>
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 <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message