Andy C wrote:
>
> If I want to add cookies or indeed set a response
> header in a jsp page do I need to make sure it is
> done before any output is sent.
>
> Do the jsp specs say anything about this ?
>

 The Servlet spec[1] (referenced by the JSP spec) says
it explicitly, but if you think about it, that's the
only way it could possibly work. The headers have
to be sent before the body, so if you've sent the
body it's too late to change the headers...




[1] Several versions, all available at:
    http://java.sun.com/products/servlet/download.html

--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to