Re: The validwhen validation's treatment of null and empty string

2006-06-02 Thread Scott Van Wart
Craig McClanahan wrote: You need to test for both conditions in the latter case, but the particular approach you suggest above is not necessarily going to work. You cannot reliably do "==" tests on strings if you are looking for equality -- you need to use the equals() function instead. Not sur

Re: The validwhen validation's treatment of null and empty string

2006-06-02 Thread Craig McClanahan
On 6/2/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: If a bean's property is the empty string "", does a test like (property == null) suffice? Or do I have to say ((property == null) or (property == ''))? You need to test for both conditions in the latter case, but the particular approach yo

The validwhen validation's treatment of null and empty string

2006-06-02 Thread Scott Van Wart
If a bean's property is the empty string "", does a test like (property == null) suffice? Or do I have to say ((property == null) or (property == ''))? - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman