Take a look at the struts-examples webapp, theres a validwhen example
in the "validator" module - since 1.2.7 or 1.2.8 I think

Niall

On 3/16/06, coudot <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have an array of two adress lines in my form.
> I want to check if AT LEAST one line is not empty.
>
> I want to use the validwhen to check the first line.
> The first line is valid only it's not null or the second line is not null.
>
> But I have an error on my page when the instruction is called in the
> validator "unexpected token adr ..." .
>
> here is my code
> <field property="adr[0]" depends ="validwhen">
>  <var>
>      <var-name>test</var-name>
>      <var-value>((*this*!=null) or adr (adr[1]))</var-value>
>  </var>
> </field>
>
>
> Is it possible to check that with the validwhen?

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

Reply via email to