use a custom/pluggin validator.

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

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
 

-----Original Message-----
From: Dinesh Samson J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: if-then-else condition in validation xml


Greetings,

Can we have something like an if-then-else block in validation.xml?

What I am looking for is that, 

a. if nothing is entered in field A, then do not validate field B and field C
b. if something is entered in field A, then check for (depends="required") for field B 
and field C....

can this be done in validation.xml ?


Thanx in Advance
 
Dinesh Samson J



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



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

Reply via email to