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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]