tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5640] New: - JSP expressions render incorrectly in XML JSP documents
Date Mon, 31 Dec 2001 13:29:23 GMT
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=5640>.
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=5640

JSP expressions render incorrectly in XML JSP documents

           Summary: JSP expressions render incorrectly in XML JSP documents
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mmorris@mindspring.com


Presenting a JSP page as XML can render jsp expressions in the wrong place.

<jsp:root xmlns:jsp="http://java.sun.com/JSP" xmlns:bean="/WEB-INF/struts-
bean.tld" version="1.2">
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<bean:header id="lang" name="Accept-Language"/>
<p>Your header says <jsp:expression>lang</jsp:expression></p>
</body>
</html>
</jsp:root>

When displayed, this prints "en-usYour header says " instead of "Your header 
says en-us". If the "<jsp:root>" element is replaced by an equivalent "<%@ 
taglib ...%>" element (and the "</jsp:root>" element removed), then the page 
renders correctly.

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


Mime
View raw message