C�dric Janssens wrote:

> I can't find this in JSP SPEC 1.0 May 28, 1999 page 64!
>

Check the 1.0 public release version, dated August 13, 1999, Section 2.13.4
(page 61).

>
> Nonetheless, what is the impact of a flush="true" ?
>

The accumulated output of the calling page is flushed before the inclusion is
started.  Among other things, this commits the headers.

>
> Does that mean that I will ne longer be able to change the HTTP header (for
> example sending a redirect ?) in my servlet? (see the example below)
>

The 1.0pr release is very clear about this, in the section mentioned above:

    An included page only has access to the JspWriter object
    and it cannot set headers.  This precludes invoking methods
    like setCookie().  A request-time Exception will be raised
    if this constraint is not satisfied.  The constraint is equivalent
    to the one imposed on the include() method of the
    RequestDispatcher class.

Because doing a redirect means setting HTTP headers, you will not be able to do
this from within an included servlet or JSP page.

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

Reply via email to