Arun Thomas wrote:
> I've been trying to understand how the <jsp:include> tags work.
>
> As I understand the spec, regardless of whether autoflush is set to
> true or false, use of the <jsp:include> tag with it's concomitant
> required parameter 'flush="true"', forces use of the page that is
> being generated. It is impossible to either redirect the browser
> to a new location, or to clear the output and start generating
> a new page (i.e. with <jsp:forward>) after using the <jsp:include> tag.
>
> My question.... Is my understanding correct? Does use of <jsp:include>
> limit my options as I have described?
>
You've got it right. Once your buffer has been flushed (either because you have
output that many characters already, or because you used a <jsp:include> element),
the HTTP headers for this response have been sent, because they go first. Since
sendRedirect() is implemented as an HTTP header, you can no longer use it after the
buffer has been flushed.
>
> Thanks very much for any clarification,
> -AMT
>
Craig
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html