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 2002/02/14 00:27:42 UTC

DO NOT REPLY [Bug 6443] New: - Jasper doesn't follow the spec in regards to the xml-view of a JSP page and whitespace handling semantics

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

Jasper doesn't follow the spec in regards to the xml-view of a JSP page and whitespace handling semantics

           Summary: Jasper doesn't follow the spec in regards to the xml-
                    view of a JSP page and whitespace handling semantics
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Ryan.Lubke@Sun.COM


hello.jsp:

<?xml version="1.0"?>
<jsp:root xmlns="http://java.sun.com/JSP/Page"
  version="1.2">
<jsp:declaration>int i;</jsp:declaration>
<hello><jsp:scriptlet>i=3;</jsp:scriptlet>
<hi>
<jsp:text>hi you all
</jsp:text><jsp:expression>i</jsp:expression>
</hi>
</hello>
</jsp:root>

Output:

<hello>
<hi>
hi you all
3
</hi>
</hello>

The output should be:

<hello> <hi> hi you all
3 </hi></hello>

See sections 5.2 and 5.2.11 of the JavaServer Pages Specification.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>