RE: validator one of multiple fields required

2004-04-07 Thread Saul Q Yuan
validwhen is suppose to do that.

http://jakarta.apache.org/struts/userGuide/dev_validator.html

Saul

> -Original Message-
> From: Paul Barry [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 3:18 PM
> To: [EMAIL PROTECTED]
> Subject: validator one of multiple fields required
> 
> 
> Is there an easy way to check that at least one of multiple fields is 
> filled in with the validator?  Kind of like:
> 
> if(username != null || firstname != null || lastname != null)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



validator one of multiple fields required

2004-04-07 Thread Paul Barry
Is there an easy way to check that at least one of multiple fields is 
filled in with the validator?  Kind of like:

if(username != null || firstname != null || lastname != null)

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