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/12/03 18:37:04 UTC
DO NOT REPLY [Bug 50408] New: Scoped EL variable in methodexpression
is treated as Object
https://issues.apache.org/bugzilla/show_bug.cgi?id=50408
Summary: Scoped EL variable in methodexpression is treated as
Object
Product: Tomcat 7
Version: 7.0.5
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: dev@tomcat.apache.org
ReportedBy: balusc@gmail.com
Consider following example:
<dl>
<c:forEach items="${pageContext.response.headerNames}" var="name">
<c:forEach items="${pageContext.response.getHeaders(name)}" var="value">
<dt>${name}</dt><dd>${value}</dd>
</c:forEach>
</c:forEach>
</dl>
The ${name} is a String. The ${name.class.name} also proves that. The
getHeaders(name) call however results in:
org.apache.jasper.el.JspELException: /test.jsp(23,12)
'${pageContext.response.getHeaders(name)}' java.lang.NoSuchMethodException:
org.apache.catalina.connector.ResponseFacade.getHeaders(java.lang.Object)
Another example which also results in NoSuchMethodException which suggests that
an Object is been passed as argument:
<c:set var="name" value="test" />
${pageContext.response.getHeader(name)}
This works all fine on Glassfish v3.
--
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 50408] Scoped EL variable in methodexpression is
treated as Object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50408
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
OS/Version| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-12-03 16:51:47 EST ---
Thanks for the report and the code snippet. That made reproducing this and
generating a test case much easier.
This has been fixed in 7.0.x and will be included in 7.0.6 onwards.
--
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