On Tue, Feb 14, 2012 at 4:57 AM, Konstantin Kolinko <knst.koli...@gmail.com> wrote: > 2012/2/14 Mark Thomas <ma...@apache.org>: >> On 14/02/2012 03:11, David Rees wrote: >>> This may not be Tomcat related, but I couldn't find anything in the >>> JSP/JSTL/EL specifications regarding a change in behavior from JSP >>> 2.0-2.2. >>> >>> Here's a simple JSP 2-line which shows the issue: >>> >>> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> >>> <c:out value="${param['foo'] == 1}"/> >>> >>> Using Tomcat 5.5.35 the page will print true for any value of foo >>> which converts to an integer: 1, 01, 001, etc. >>> >>> Using Tomcat 7.0.25 the page will only print true if foo is 1. 01 >>> will result in false. >>> >>> Am I missing something or is this a bug in Tomcat 7? I haven't tested >>> with TC6 yet. >> >> I check of the relevant specifications indicates that, unless I missed >> something obvious, the 5.5.x behaviour is correct and should be >> unchanged in 7.0.x. >> >> Initial impressions are that this is a bug. That said, the coercion >> rules are quite strict and 7.0.x is better at following them. Debugging >> through the code may identify that the problem lies elsewhere. > > Reading the specification I agree that this is a bug. > I created issue in bugzilla: > https://issues.apache.org/bugzilla/show_bug.cgi?id=52666 > > It is reproducible in 6.0.x as well.
Thanks, I've added myself to the CC list on the ticket. I'm surprised that there isn't a test-case for this issue? FWIW - I also tested on Jetty 6.1.26 which has the same bug. -Dave --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org