Re: struts validator issues

2006-04-06 Thread Bart Busschots
Hi Victor, I don't have an explicit example but were I to have to do this I would use a validwhen validation that would look something like: test ((*this* < 10) or (*this* > 100)) You can find out more details on validwhen in the validator developers guide: http://struts.apache

Re: struts validator issues

2006-04-06 Thread Victor Ying
Hi Bart, Thanks for the information, my main questions how do you validate open interval like (0,10) in float field.do you have example for that? Thanks ---victor --- Bart Busschots <[EMAIL PROTECTED]> wrote: > Hi Victor, > > The key to the validator is that you can use > multiple validati

Re: struts validator issues

2006-04-06 Thread Bart Busschots
Hi Victor, The key to the validator is that you can use multiple validations on the one filed so you can combine things like less than and more than to give you an open range etc. Another very powerful validation is 'valid when' which allows you to set up complex checks that related to other f

struts validator issues

2006-04-05 Thread victor ying
Hi All, I am using struts 1.2.7 and related Apache commons validator. I am using validation.xml(whose rules are defined by validator-rules.xml I need your insight of following issues 1.How do I validate open set data range,e,g (1,10) where 1 and 10 are exclusive, current intRange/floatRa