<jsp:include flush="false> response.sendRedirect problem
From: carlisle411 (carlisle411_at_gmail.com)
Date: 02/27/05
- Next message: Hal Rosser: "Re: interface to java program"
- Previous message: Ed Dana: "How to save window."
- Next in thread: John C. Bollinger: "Re: <jsp:include flush="false> response.sendRedirect problem"
- Reply: John C. Bollinger: "Re: <jsp:include flush="false> response.sendRedirect problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Feb 2005 15:41:41 -0800
I am trying redirect to a specified URL via the following:
response.sendRedirect("http://foo.bar.com/");
Here is the actual code:
one.jsp
---------------------------------
<%@ page buffer="48kb" %>
<jsp:include page="two.jsp" flush="false" />
two.jsp
---------------------------------
<%@ page buffer="48kb" %>
<%
response.sendRedirect("http://foo.bar.com/");
%>
I know that this used to be a problem because the output buffer would
be flushed before the run-time file got included. But it is my
impression that this should now work with JSP 2.0. I thought I could
specify flush="false" in as a jsp:include attribute to have the output
stream NOT flushed.
For what its worth, I am using Tomcat 5.0.28 on a Mac. Anyone know
what the problem is? Workarounds? Thanks.
-j
- Next message: Hal Rosser: "Re: interface to java program"
- Previous message: Ed Dana: "How to save window."
- Next in thread: John C. Bollinger: "Re: <jsp:include flush="false> response.sendRedirect problem"
- Reply: John C. Bollinger: "Re: <jsp:include flush="false> response.sendRedirect problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]