https://issues.apache.org/bugzilla/show_bug.cgi?id=50272

           Summary: Usage of variables named as java keyword leads to
                    .jsp/.tag compilation error
           Product: Tomcat 7
           Version: 7.0.4
          Platform: PC
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: eugene.petre...@jetbrains.com


Consider .jsp file source with failure: 

<c:set var="class" value="foo" />
${class}

Another case:
I have a bean with getter: boolean isNew() available in jsp under name foo. 
The following .jsp crashes:
<c:if test="${foo.new}">AAA</c:if>

The same issues are found in .tag files. 
I included c prefix taglib with 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>

Is there a workaround to add a prefix for all variable names in generated java
code in order to make my application working with Tomcat7 without changes? My
application works under Tomcat6.

-- 
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to