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/01/15 17:43:31 UTC

DO NOT REPLY [Bug 5868] New: - and RequestDispatcher output is wrong.

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

<jsp:include> and RequestDispatcher output is wrong.

           Summary: <jsp:include> and RequestDispatcher output is wrong.
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: puckman@taglab.com


I have three files main.jsp, first.jsp and second.jsp. main.jsp includes first.jsp and second.jsp in two different ways (silly example for demonstration purposes):

----- main.jsp -----
FIRST:<br>
  <jsp:include page="first.jsp" flush="true"/><br>
SECOND:<br>
<%
    ServletContext rootContext = config.getServletContext().getContext( "/" );
    RequestDispatcher rd = rootContext.getRequestDispatcher( "/second.jsp" );
    rd.include( request, response );
%>

--- first.jsp ---
output from first

--- second.jsp ---
output from second

Running the above example gives me:

FIRST:
output from first output from second
SECOND:

I can't even make it right by calling out.flush() explicitly in between. This might be related to #631

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