Re: [OS-webwork] validating string length

2003-06-08 Thread Toby Hede
i can get length now using title.length(), but my EL tests don't seem to work. if i use this: title.length() i get a message saying 'Got result of N when trying to get boolean' where N is the length. however, if I use a simple OGNL expression: title.length() == 10 i get nothing. no error, n

Re: [OS-webwork] validating string length

2003-06-08 Thread Mike Cannon-Brookes
Try title.length() > 10 The expression validator is a little confusing at the moment, if the expression is FALSE, it is invalid. Cheers, Mike On 9/6/03 1:15 PM, "Toby Hede" ([EMAIL PROTECTED]) penned the words: > i tried escaping the <, but still get no validation on length - am i > accessing t

Re: [OS-webwork] validating string length

2003-06-08 Thread Toby Hede
i tried escaping the <, but still get no validation on length - am i accessing the method correctly? Mike Cannon-Brookes wrote: Toby, Because it's XML, you need to escape the < - ie < Cheers, Mike On 9/6/03 12:03 PM, "Toby Hede" ([EMAIL PROTECTED]) penned the words: hi there again, i am attemp

Re: [OS-webwork] validating string length

2003-06-08 Thread Mike Cannon-Brookes
Toby, Because it's XML, you need to escape the < - ie < Cheers, Mike On 9/6/03 12:03 PM, "Toby Hede" ([EMAIL PROTECTED]) penned the words: > hi there again, i am attempting to validate string length using XWork > validation. > > i solved the problem using a custom validator, which i have attac

[OS-webwork] validating string length

2003-06-08 Thread Toby Hede
hi there again, i am attempting to validate string length using XWork validation. i solved the problem using a custom validator, which i have attached in case anyone finds it useful ... feel free to roll it into xwork. then i suddenly realised that i could possibly use the expression validator