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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to