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

           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
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: joker8achtu...@googlemail.com


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

org.apache.jasper.JasperException: /jsp/example.jsp(68,6) "${memBean.class.name
== 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: 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