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
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
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
3 matches
Mail list logo