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 2003/02/07 02:22:06 UTC

DO NOT REPLY [Bug 16865] New: - EL expressions in tag files no longer works

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16865>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16865

EL expressions in tag files no longer works

           Summary: EL expressions in tag files no longer works
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hans@gefionsoftware.com


Something is fundamentally wrong with EL evaluation in tag files, a bug that
must have been introduced recently (a nightly build from last week worked fine).

This tag file:

  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
  <%@ tag body-content="scriptless" %>

  Static text and c:out: <c:out value="static text" />
  <br>
  EL expr with variable and c:out: 
  <c:out value="${pageContext.request.servletPath}" />
  <br>
  EL expr with variable in text: ${pageContext.request.servletPath}
  <br>
  EL expr with static text: ${'static text'}

produces this output when invoked from a JSP page:

  Static text and c:out: static text
  EL expr with variable and c:out:
  EL expr with variable in text:
  EL expr with static text: static text 

In other words, evaluation of an EL expression that contains variables (I've
tested with other variables than pageContext, used here) results in the empty
string. An EL expression that only contains static text is evaluated correctly.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org