You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/10/20 10:04:43 UTC
DO NOT REPLY [Bug 50120] New: .class in a jsp results in an invalid
idetifier
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
--- Comment #2 from Konstantin Kolinko <kn...@gmail.com> 2010-10-20 06:48:36 EDT ---
"class" is a reserved word in Java. Note, that you can write your expression as
"${memBean['class'].name == text}"
--
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
Eugene Petrenko <eu...@jetbrains.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #4 from Eugene Petrenko <eu...@jetbrains.com> 2010-11-15 09:48:01 EST ---
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?
--
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |DUPLICATE
--- Comment #6 from Konstantin Kolinko <kn...@gmail.com> 2010-11-15 10:57:23 EST ---
*** This bug has been marked as a duplicate of bug 49217 ***
--
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
OS/Version| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-10-20 06:39:52 EDT ---
This is spec required behaviour. Further questions should be addressed to the
users mailing list.
--
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-11-15 10:51:46 EST ---
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.
--
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
DO NOT REPLY [Bug 50120] .class in a jsp results in an invalid
idetifier
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50120
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eugene.petrenko@jetbrains.c
| |om
--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-11-15 07:48:45 EST ---
*** Bug 50272 has been marked as a duplicate of this bug. ***
--
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