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=17929>.
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=17929

EL expression treated as plain text in template data attribute with Jsp Document syntax

           Summary: EL expression treated as plain text in template data
                    attribute with Jsp Document syntax
           Product: Tomcat 5
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When i use the xml syntax for a jsp page with Tomcat 5.0 Alpha and try to 
reference an EL parameter in a template data attribute, the EL expression gets 
output as plain text, i.e. it is treated as quoted plaintext within the 
attribute. The behavior seems a bit strange to me, I'd expect it to output the 
parameter. I've been trying to find a clarification in the JSP 2.0, and JSTL 
1.0 specification but unfonrtunately no luck so far.

Example, please note that the first EL expression is treated as plain text, 
while the second evaluates correctly.:

<?xml version="1.0" encoding="ISO-8859-1"?>
<jsp:root
 xmlns:jsp="http://java.sun.com/JSP/Page";
 xmlns:c="http://java.sun.com/jstl/core";
 version="2.0">

<jsp:directive.page
 contentType="text/html"
 pageEncoding="ISO-8859-1"/>

<html>
<body>
    <div class="${1+2}">${1+2}</div>
</body>
</html>
</jsp:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to