One important detail I forgot to mention is that the <jsp:include> has
"flush='false'", which should buffer the prior content ("<HTML>" in this
case), so the sendRedirect() should work.

Right?

Jay

 > -----Original Message-----
 > From: Jay Burgess [mailto:[EMAIL PROTECTED]]
 > Sent: Friday, May 17, 2002 11:27 AM
 > To: [EMAIL PROTECTED]
 > Subject: sendRedirect() from within a <jsp:include>?
 >
 >
 > Obviously I'm missing some important detail about the
 > mechanics of using
 > <jsp:include>.
 >
 > I've got a JSP with nothing in it but a
 > "<html><jsp:include>,,,</jsp:include></html>".  The "page" for the
 > <jsp:include> is a direct call to my servlet.  The only thing
 > my servlet
 > does is a sendRedirect() to another page.
 >
 > When I request my JSP, I get back just "<html></html>", which
 > means the
 > redirect failed, the <jsp:include> did nothing, and I didn't get any
 > exceptions (like an IllegalStateException showing the
 > response was already
 > committed).
 >
 > What am I missing about trying to do things this way?  BTW, I'm using
 > Tomcat 4.0.3.
 >
 > Jay
 >

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to