You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. You should generally use String-typed form bean properties, but if you need to keep it as Long, you'll want to configure BeanUtils not to convert null to 0. See the BeanUtils documentation for details on how to do that (you need to register a customized instance of the converter for type Long). L. Heidy Gutiérrez Guzmán wrote: > Hi > > I try ---. and that also does't work > > If you have any more idea, i would be grateful > > > On 9/25/06, Chris Pratt wrote: >> >> According to your code, the default value is the String "null", not ---. >> You might want to try setting that to an empty value, e.g. >> >> --- >> >> (*Chris*) >> >> On 9/25/06, Heidy Gutiérrez Guzmán wrote: >> > >> > Hi >> > >> > I need to validate an html:select with validator framework >> > >> > This is the code that i have >> > >> > >> > >> > >> > --- >> > >> > > labelProperty= >> > "nombre"> >> > >> > >> > >> > I need have a default value that is " ---" , but i need validate that >> this >> > >> > value does'nt selected. >> > >> > The code in the Validator form is >> > private Long categoria; >> > >> > I tried to use the required validation, but that does'nt work, i think >> > because the html:select have the "---" default value >> > >> > >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org