struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russo, Joe" <Rus...@cadmus.com>
Subject RE: logic:notEqual does not appear to work correctly
Date Mon, 10 Nov 2008 15:25:58 GMT
This works.

if(!artMetId.equals(partMetId)){

For some reason the logic:notEqual tag does not do a dot equals
comparision but a ==.

 

 

-----Original Message-----
From: Russo, Joe [mailto:RussoJ@cadmus.com] 
Sent: Monday, November 10, 2008 9:49 AM
To: Struts Users Mailing List
Subject: logic:notEqual does not appear to work correctly

 

Hi,

I am trying to do a comparision on the highlighted code and output in my
JSP.  For some reason the comparison does not equal 33584.  Any ideas
why?

Thanks,

Joe

           



<bean:define id="artMetId" name="article" property="articleMetaId"/>

<bean:define id="partMetId" name="article" property="parentArticleId"/>





<%       System.out.println("artMetId=*" + artMetId + "*");

    System.out.println("partMetId=*" + partMetId + "*");

%>





09:43:03,796 INFO  [STDOUT] artMetId=*33596*

09:43:03,797 INFO  [STDOUT] partMetId=*33584*

09:43:03,808 INFO  [STDOUT] artMetId=*33584*

09:43:03,808 INFO  [STDOUT] partMetId=*33584*

09:43:03,816 INFO  [STDOUT] artMetId=*38912*

09:43:03,816 INFO  [STDOUT] partMetId=*33584*

09:43:03,824 INFO  [STDOUT] artMetId=*39287*

09:43:03,824 INFO  [STDOUT] partMetId=*0*

09:43:03,842 INFO  [STDOUT] artMetId=*39284*

09:43:03,842 INFO  [STDOUT] partMetId=*0*

09:43:03,848 INFO  [STDOUT] artMetId=*39245*

09:43:03,849 INFO  [STDOUT] partMetId=*0*

09:43:03,856 INFO  [STDOUT] artMetId=*38846*

09:43:03,856 INFO  [STDOUT] partMetId=*0*

09:43:03,864 INFO  [STDOUT] artMetId=*40559*

09:43:03,864 INFO  [STDOUT] partMetId=*0*







<logic:greaterThan name="article" property="parentArticleId" value="0">

                                             <logic:notEqual
name="article" property="parentArticleId" value="<%artMetId%>">

                        <img src="../images/icon_merged.png" width="13"
height="13" align="absmiddle">

</logic:notEqual>

</logic:greaterThan>


****

****


****
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message