DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38101>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38101 Summary: ComparaisonTag do not work with all long values Product: Taglibs Version: unspecified Platform: All OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Standard Taglib AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] The following jsp code <% Long l1 = new Long(123456789012345611L); request.setAttribute("l1", l1); %> <logic:equal name="l1" value="123456789012345612"> Hello </logic:equal> will always print "Hello" although values are not the same. this is beacause org.apache.struts.taglib.logic.CompareTagBase first parse values as Double and, in case of exception, parse as Long. I think that it should be the opposite : first long and then double. Because actually, the long parse is never reached : all long are also double. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
