You can just write your own validator class and add it to your
validators.xml... It's very easy, just look at the validator classes in
Xwork. 

> -----Original Message-----
> From: Sakke Wiik [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 17, 2004 1:59 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Validating length of optional string-field
> 
> 
> One more validation problem...
> How can I validate the length of an optional String with the 
> ValidationInterceptor when there's no String-validator, just 
> a requiredstring one? Other types like int and date are not a 
> problem since you can give them the min and max parameters. 
> Shouldn't there be one for Strings too? If there is no such 
> validator, how do I write a fieldexpression with an OR clause?
> 
> Cheers,
> Sakke
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now! 
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438> &op=click
> 
> _______________________________________________
> 
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to