----- Original Message -----
From: "Christopher K. St. John" <>
>
> 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
Which is what I thought should happen. However consider this code
on a resin server:
Jsp page 1: test1.jsp
<%
response.setHeader("Test1","1");
%>
<jsp:include page="/test2.jsp" flush="true"/>
<p>Hello</p>
Included Jsp page : test2.jsp
<%
response.setHeader("Test2","2");
System.out.println("test2");
%>
If I do a Get /test1.jsp http:1.1 the output I get is
HTTP/1.0 200 OK
Server: Resin/2.0.0
Test1: 1
Set-Cookie: JSESSIONID=aaa6LMorX2NmzB; Path=/
Content-Type: text/html
Date: Wed, 25 Jul 2001 15:24:47 GMT
<p>Hello</p>
Now what happened to the second setHeader output in the included file?
Should it be included or has it gone AWOL ?
Ta
Andy C
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets