hello,
   sorry to trouble you of my problem. i hope for the best solution of my
problem.

i am using DynaValidatorForm to validate my form, and i have form-name, a
form property configurate like this:

<form-property name="author_id" type="java.lang.Integer" />

and in my jsp is :

  <html:select property="author_id">
    <option value="">add new author</option>......</html:select>


and in my validation.xml ,just configurate below..

<field property="author_id"  depends="required">
<arg0 key="admin.article.author"/>

it can't validate properly, until i change the form-property type to
"java.lang.String",
i know the validator's depends required must be correspond to a String type,
but i want to keep the java.lang.Integer type, instead of that, i can set
the option value equals 0, and use the Range depends to validate the field,
or use "validwhen" that compare with 0 to validate the field, but that
depends property hasn't available in Struts 1.1, any better solution about
this case, i want to leave the form-bean type to java.lang.Integer, and if
the option value is blank(""), how can i validate this field?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to