A quick look at that configuration looks correct. Let me know if it
doesn't work for you.

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
    MySQL & JSP Web Applications: 
        Data Driven Programming Using Tomcat and MySQL
    ISBN 0672323095; Sams, 2002

Co-Author: 
    Struts Kick Start
    ISBN 0672324725; Sams, 2002

Forthcoming:
    JavaServer Faces Kick Start 
    Sams, Fall 2003


> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 30, 2003 12:41 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [VALIDATOR] requiredif ??
> 
> 
> 
> I'm Still struggling with requiredif... there doesn't seem to 
> be a working example of it included with 1.1b3.  I've gone 
> through the documentation and come up with this.  I'm trying 
> to say that address is required only if
>   1. prospect is null
>   2. prospectNameOrId is not null
>   3. action is not equal to "Add Prospect"
> 
> <field property="address" depends="requiredif">
>   <arg0 key="label.prospect.address"/>
>   <var>
>     <var-name>field[0]</var-name>
>     <var-value>prospect</var-value>
>   </var>
>   <var>
>     <var-name>field-test[0]</var-name>
>     <var-value>NULL</var-value>
>   </var>
>   <var>
>     <var-name>field[1]</var-name>
>     <var-value>prospectNameOrId</var-value>
>   </var>
>   <var>
>     <var-name>field-test[1]</var-name>
>     <var-value>NOTNULL</var-value>
>   </var>
>   <var>
>     <var-name>field[2]</var-name>
>     <var-value>action</var-value>
>   </var>
>   <var>
>     <var-name>field-test[2]</var-name>
>     <var-value>NOTEQUAL</var-value>
>   </var>
>   <var>
>     <var-name>field-value[2]</var-name>
>     <var-value>Add Prospect</var-value>
>   </var>
>   <var>
>     <var-name>field-join</var-name>
>     <var-value>AND</var-value>
>   </var>
> </field>
> 
> Thanks,
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
> 



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

Reply via email to