DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-08-17 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428


Mark Thomas ma...@apache.org changed:

   What|Removed |Added

 AssignedTo|taglibs-...@jakarta.apache. |d...@tomcat.apache.org
   |org |


--- Comment #6 from Mark Thomas ma...@apache.org 2009-08-17 09:55:50 BST ---
Update assignee to Tomcat dev list

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-06-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428


Kris Schneider k...@dotech.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #3 from Kris Schneider k...@dotech.com  2009-06-29 07:59:19 PST 
---
Well, I *did* miss something. I forgot that the EL implementation is now part
of the container (as of JSP 2.0, I believe), and not part of JSTL. So, I guess
I'm inclined to reject the bug. Any chance you can test your code on different
containers to see if your results change?

The Standard taglib code you reviewed should have been targeted at implementing
the JSTL 1.0 spec (JSP 1.2), which doesn't use Big(Decimal|Integer) in its
coercions for relational operators.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-06-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428





--- Comment #4 from void hhf...@163.com  2009-06-29 08:42:36 PST ---
(In reply to comment #3)
 Well, I *did* miss something. I forgot that the EL implementation is now part
 of the container (as of JSP 2.0, I believe), and not part of JSTL. So, I guess
 I'm inclined to reject the bug. Any chance you can test your code on different
 containers to see if your results change?
 The Standard taglib code you reviewed should have been targeted at 
 implementing
 the JSTL 1.0 spec (JSP 1.2), which doesn't use Big(Decimal|Integer) in its
 coercions for relational operators.

We tried in Tomcat 5.0.28, and WebSphere 5. Both performed uncorrectly.
Since it is as you said,what we gonna do for now?
Is there a finnal solution for this situation?

Thanks!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-06-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428





--- Comment #5 from Kris Schneider k...@dotech.com  2009-06-29 10:40:11 PST 
---
Maybe you can provide some more detail on exactly what you're doing. Here's a
test page, coerce.jsp (webapps/ROOT):

%@ page contentType=text/plain %
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
% pageContext.setAttribute(decimal, new java.math.BigDecimal(0.01)); %
decimal: ${decimal}
decimal == 0: ${decimal == 0}
c:if test=${decimal == 0}true/c:if

TC 5.0.28
decimal: 0.01
decimal == 0: false

Notice that true does *not* get output.

Hang on, is this exactly what you have in your page:

c:if test={foo==0}

Because it should be this:

c:if test=${foo==0}

This discussion should also be moved to taglibs-useratjakarta.apache.org

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-06-26 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428





--- Comment #2 from void hhf...@163.com  2009-06-26 00:57:16 PST ---
ok,gotcha.

Will apache fix it in the next version?

The bug exists in the latest version:jakarta-taglibs-standard-1.1.2.zip

By the way,do you know if there are other JSTL implementations besides apache's

thanks!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47428] JSTL converts BigDecimal to Long

2009-06-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47428





--- Comment #1 from Kris Schneider k...@dotech.com  2009-06-25 11:01:06 PST 
---
Maybe I missed something, but I didn't see *any* Big(Decimal|Integer) coercions
in org.apache.taglibs.standard.lang.jstl.Coercions. Strange. So, I'd say it's a
bug - the spec clearly states that BigDecimal coercion should take place before
Long coercion.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org