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=5554>.
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=5554
request.getRequestDispatcher("uri").include() puts included contents at wrong place
Summary: request.getRequestDispatcher("uri").include() puts
included contents at wrong place
Product: Tomcat 4
Version: 4.0.1 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: pyou@vignette.com
CC: pyou@vignette.com
Hi,
I am trying to include a.jsp into b.jsp by doing the following:
---a.jsp---
This is included @ <%= new java.util.Date() %>
---b.jsp---
<br>Start include<br>
<%
request.getRequestDispatcher("a.jsp").include(request, response);
%>
<br>
end include<br>
When requesting b.jsp from browser, here is the output:
---output of Tomcat----
This is included @ Thu Dec 20 16:56:56 CST 2001
Start include
end include
-----------
The problem is that the included content was inserted at the wrong place!
I tried this on both Tomcat 3.2.3 and 4.0.1 and got the same behavior.
I tried this on WebLogic 6.1, it works as I expected:
----output of weblogic----
Start include
This is included @ Thu Dec 20 16:56:56 CST 2001
end include
--------------------------
--
To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
|