tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50408] New: Scoped EL variable in methodexpression is treated as Object
Date Fri, 03 Dec 2010 17:37:04 GMT

           Summary: Scoped EL variable in methodexpression is treated as
           Product: Tomcat 7
           Version: 7.0.5
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper

Consider following example:

  <c:forEach items="${pageContext.response.headerNames}" var="name">
    <c:forEach items="${pageContext.response.getHeaders(name)}" var="value">

The ${name} is a String. The ${} 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:

Another example which also results in NoSuchMethodException which suggests that
an Object is been passed as argument:

<c:set var="name" value="test" />

This works all fine on Glassfish v3.

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