Bug 44970 - Error on the taglib "Logic:notEqual" ,based on the Struts1.1.1.1
Summary: Error on the taglib "Logic:notEqual" ,based on the Struts1.1.1.1
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: String Taglib (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-11 19:48 UTC by petersong
Modified: 2008-05-12 14:03 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petersong 2008-05-11 19:48:39 UTC
Right now,we are devleoping a MVC java project on the platform Eclipse3.2.0. and occasionally met up with one problem on tablib when dealing with the Struts taglib "Logic:notEqual".

【Preparation】
In JSP
we use the Struts Taglib in the jsp as below.

-----------------------------------------------------------------------------
<bean:define id="breakKey" value="1018E150300625304589" type="String"/>
....... 
 <logic:notEqual name="lackingBean" property="laseNo" value='<%=breakKey %>'>
      <bean:write name="lackingBean" property="laseNo"/>
 </logic:notEqual>
------------------------------------------------------------------------------

【Test Case1】
   we set '1018E150300625304587' to the "laseNo" of lackingBean.

【Analysis】
   As refered on the logic of Jsp,The value of "laseNo" will be displayed on the IE because the value of the "breakKey" isn't equal to the value of String '1018E150300625304587'.

But...

【Errors Report】
 "laseNo" did not display as will,because of the error on the Taglib Logic.

Anyway,that only happend on the character "E"
if we change the character "E" for "C" or anyelse character besides "E",there will be no problem on the comparison.
For example the comparison between "1018C150300625304589" and "1018C150300625304587" is OK.
Comment 1 Rahul Akolkar 2008-05-12 14:03:16 UTC
Please use the Struts issue tracker for Struts-related issues:
  http://issues.apache.org/struts/

This is the Jakarta Taglibs issue tracker, the two are unrelated.

Towards the issue itself, there is likely confusion between the character E and the exponent numeric operator somewhere in the pipeline.