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 5868] New: - <jsp:include> and RequestDispatcher output is wrong.
Date Tue, 15 Jan 2002 16:43:31 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=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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message