You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Aparna A (JIRA)" <ji...@apache.org> on 2007/06/22 17:56:26 UTC

[jira] Created: (WW-2010) tag equates "035" and "35" as equal

<logic:equal> tag equates "035" and "35" as equal
-------------------------------------------------

                 Key: WW-2010
                 URL: https://issues.apache.org/struts/browse/WW-2010
             Project: Struts 2
          Issue Type: Bug
         Environment: Windows XP professional, Linux
            Reporter: Aparna A


<logic:equal> tag equates "035" and "35" as equal

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3071) tag equates "035" and "35" as equal

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41493 ] 

Henri Yandell commented on STR-3071:
------------------------------------

Looks like it basically compares as three things. Firstly as a Double, then as a Long, and then as a String.

https://svn.apache.org/repos/asf/struts/struts1/branches/STRUTS_1_3_BRANCH/taglib/src/main/java/org/apache/struts/taglib/logic/CompareTagBase.java

I suspect this is going to be a feature, and therefore WONTFIX. 

Anyone have any ideas?

> <logic:equal> tag equates "035" and "35" as equal
> -------------------------------------------------
>
>                 Key: STR-3071
>                 URL: https://issues.apache.org/struts/browse/STR-3071
>             Project: Struts 1
>          Issue Type: Bug
>         Environment: Windows XP professional, Linux
>            Reporter: Aparna A
>
> <logic:equal> tag equates "035" and "35" as equal

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (STR-3071) tag equates "035" and "35" as equal

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved STR-3071.
----------------------------------

    Resolution: Won't Fix

You're right, to fix this the values would have to be treated as Strings rather than numbers and numeric comparison is a feature. Also most of the tags in the "logic" taglib pre-date the JSTL and the only reason they haven't been removed is compatibility - generally we recommend people use them instead though (e.g. <c:if> or <c:choose> in this case).

Closing as WONTFIX

> <logic:equal> tag equates "035" and "35" as equal
> -------------------------------------------------
>
>                 Key: STR-3071
>                 URL: https://issues.apache.org/struts/browse/STR-3071
>             Project: Struts 1
>          Issue Type: Bug
>         Environment: Windows XP professional, Linux
>            Reporter: Aparna A
>
> <logic:equal> tag equates "035" and "35" as equal

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Moved: (STR-3071) tag equates "035" and "35" as equal

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes moved WW-2010 to STR-3071:
---------------------------------------

    Workflow: jira  (was: Struts)
         Key: STR-3071  (was: WW-2010)
     Project: Struts 1  (was: Struts 2)

> <logic:equal> tag equates "035" and "35" as equal
> -------------------------------------------------
>
>                 Key: STR-3071
>                 URL: https://issues.apache.org/struts/browse/STR-3071
>             Project: Struts 1
>          Issue Type: Bug
>         Environment: Windows XP professional, Linux
>            Reporter: Aparna A
>
> <logic:equal> tag equates "035" and "35" as equal

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.