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 23:40:19 UTC

DO NOT REPLY [Bug 5868] - 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.

Larry.Isaacs@sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From Larry.Isaacs@sas.com  2002-01-15 14:40 -------
Calling out.flush() works for me, i.e.:

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

JSP's use a local buffer.  JSP 1.1 requires flush="true" so that this buffer
is flushed prior to including first.jsp.  You must use out.flush() prior to
calling the RequestDispatcher to accomplish the same thing for second.jsp.

I assume you put the out.flush() in the same location I did. I don't know why
it didn't work for you.

I'm resolving as INVALID since the indicated behavior for the supplied test case
is the expected behavior.

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