tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
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: joker8achtung1@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message