Summary: | .class in a jsp results in an invalid idetifier | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | joker8achtung1 |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | eugene.petrenko |
Priority: | P2 | ||
Version: | 7.0.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
joker8achtung1
2010-10-20 04:04:38 UTC
This is spec required behaviour. Further questions should be addressed to the users mailing list. "class" is a reserved word in Java. Note, that you can write your expression as "${memBean['class'].name == text}" *** Bug 50272 has been marked as a duplicate of this bug. *** This is the breaking change for us to switch to Tomcat7. We have quite a big codebase to search for keyword usages in .jsp/.tag files. Is there a property/parameters/setting to enforce older behavior (like in 6.0) of jsp compiler? The same fix has been / will be applied to Tomcat 6. In the short-term you can use org.apache.el.parser.SKIP_IDENTIFIER_CHECK to bypass the check but that is not a viable long term solution. As time consuming as it may be, you'll need to review your apps for illegal EL and fix any issues. |