I came across this yesterday. Here's what I found. If a bean exists with a
null field, doing a logic:present on the field return true and comparing it
(e.g., using logic:equals) gets a NullPointerException.

If there is a custom tag to check for null values I'd love to know it.

I think this may be what Pitbull is after too, yes? Or do you really want to
campare with an empty string ""?

,boz

-----Original Message-----
From: Dimitar Stavrakov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 2:52 PM
To: 'Struts Users Mailing List'
Subject: RE: How to compare a notNull string with the nullString!


Try using the present tag ex:

        <logic:present name="bean Name here " property="property name here
"/>

Regards, 
        Dimitar

-----Original Message-----
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 21, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: How to compare a notNull string with the nullString!

Subject: How to compare a notNull string with the nullString!
From: "PitBull" <[EMAIL PROTECTED]>
 ===
Hi all

i'ld like to compare
        <logic:notEqual name="content" value="">
and it not work. I tried to use the tag
<logic:notEmpty name="content" value=""> but this logic command is for the
struts 1.1 and i did not find the 1.1 version libraries.
Can any one help me?

Thanx

TT





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Reply via email to