tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject [5] EL parsing eats extra character after '?'
Date Fri, 30 May 2003 17:47:01 GMT
Attached below is a message from tomcat-user. I don't know it this is a valid 
issue or not. If its not, it has great FAQ potential.

If it is a problem, could it be caused by the following the snippet below? It 
looks like any custom tag would be ignored if preceded by a $. This seems to 
be the behavior I saw when I put $ in front of the hello world tag in 

In org.apache.jasper.compiler.Parser.parseXMLTemplateText()
lines 1502, 1506
                     if (ch != '{') {

I really don't know much about Jasper, and was just snooping.


-------- Original Message --------
Subject: Tomcat 5.0.2 Bug
Date: Fri, 30 May 2003 06:36:04 -0700 (PDT)
From: Ed Smith <>
Reply-To: Tomcat Users List <>

I think there is a bug in Tomcat 5.0.2 (at least under
Windows XP) dealing with placing a $ before (at least
some) tags.

Consider the following JSP:

<jsp:useBean id="login" class="LoginBean"
<jsp:setProperty name="login" property="username"

     $<jsp:getProperty name="login"

In Tomcat 4.1.24, this generates the following HTML
(as expected)


In Tomcat 5.0.2, it generates

     $<jsp:getProperty name="login"

****The jsp taglib does not get processed in
5.0.2.****  Note that if I add a space after the $, it
works in 5.0.2

Changing to

$ <jsp:getProperty name="login" property="username"/>

gets the following HTML

     $ foo

Am I missing something?  I didn’t find the problem in
either the bugs database or the mailing list archives.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message