The new flush="false" value does *not* change the restriction in the
Servlet spec that included servlets are not allowed to affect headers in
the response.  Therefore, Tomcat will still ignore any attempt to set the
"Last-Modified" header inside an included JSP.

See the relevant Servlet 2.3 and JSP 1.2 specifications for more details.

  http://java.sun.com/products/servlet/download.html
  http://java.sun.com/products/jsp/download.html

Craig McClanahan


On Wed, 12 Jun 2002, Jim Michael wrote:

> Date: Wed, 12 Jun 2002 11:12:09 -0500
> From: Jim Michael <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: flush="false" not working?
>
> I was under the impression that Tomcat4 now lets me do JSP 1.2 things
> like modify response headers via includes with flush="false". However,
> this does not work for me.
>
> I created a very simple test where TEST1.JSP does:
>
> <jsp:include page="/test2.jsp" fluch="false" />
>
> And within test2.jsp I do:
>
> <% response.setDateHeader("Last-Modified",1021852800934L); %>
>
> This *should* set the last-modified header to May 18-ish, but it
> doesn't work. If I move the setDateHeader() code to TEST1.JSP, it sets
> the header fine... so it seems that even though flush="false" doesn't
> throw an error anymore, it still does not allow me to set response
> headers as advertised.
>
> Any suggestions or corrections welcome!
>
> I'm using Tomcat 4.0.3 and JDK 1.3.1
>
> Jim
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to