tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50120] New: .class in a jsp results in an invalid idetifier
Date Wed, 20 Oct 2010 08:04:43 GMT

           Summary: .class in a jsp results in an invalid idetifier
           Product: Tomcat 7
           Version: 7.0.2
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper

when trying to access a getClass() method within a jsp, the following exception

org.apache.jasper.JasperException: /jsp/example.jsp(68,6) "${
== text}" 
contains invalid expression(s): javax.el.ELException: [class] is not a valid
Java identifier

is this a bug or a desired feature of 7.0.2?

as far as i've noticed, the validation is done in org.pache.el.util.Validation
whereby invalidIdentifiers contains the class keyword
by the way, validation is done currently case-insensitive, so *.Class.Name
would be a work-around

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message