I marked the Bugzilla item as fixed. I'm still making my sweep through the
NEW items for the pending Tomcat 3.2.2b1 drop.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 23, 2001 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: cvs commit:
> jakarta-tomcat/src/tests/webpages/WEB-INF/classes/dispatch
> IncludeJspWithSession.java
>
>
> larryi 01/02/23 13:45:47
>
> Modified: src/tests/webpages/WEB-INF test-tomcat.xml
> Added: src/tests/webpages/WEB-INF/classes/dispatch
> IncludeJspWithSession.java
> Log:
> Add a test for Bugzilla Bug #92, which is present in Tomcat 3.3m1.
>
> If you create a session, then include a JSP page, the session
> cookie gets lost.
> This was "fixed" in Tomcat 3.2 by adding an "response.flushBuffer()" to
> RequestDispatcherImpl.include().
>
> Revision Changes Path
> 1.24 +8 -2
> jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml
>
> Index: test-tomcat.xml
> ===================================================================
> RCS file:
> /home/cvs/jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml,v
> retrieving revision 1.23
> retrieving revision 1.24
> diff -u -r1.23 -r1.24
> --- test-tomcat.xml 2001/02/16 05:52:03 1.23
> +++ test-tomcat.xml 2001/02/23 21:45:46 1.24
> @@ -16,7 +16,7 @@
> early tests.
> -->
>
> - <property name="revision" value="$Revision: 1.23 $" />
> + <property name="revision" value="$Revision: 1.24 $" />
> <property name="host" value="127.0.0.1" />
> <property name="port" value="8080" />
> <property name="outputType" value="text" />
> @@ -440,7 +440,13 @@
> returnCode="${http.protocol} 302"
> />
>
> -
> + <httpClient>
> + <comment>Get a session and then include a JSP.</comment>
> + <httpRequest
> path="/test/servlet/dispatch.IncludeJspWithSession HTTP/1.0" />
> + <httpStatusMatch match="200" />
> + <responseMatch match="This is an inner file"/>
> + <headerMatch name="Set-Cookie2" value="JSESSIONID=" />
> + </httpClient>
>
> </target>
>
>
>
>
> 1.1
> jakarta-tomcat/src/tests/webpages/WEB-INF/classes/dispatch/Include
JspWithSession.java
>
> Index: IncludeJspWithSession.java
> ===================================================================
> /*
> * $Id: IncludeJspWithSession.java,v 1.1 2001/02/23 21:45:47
> larryi Exp $
> *
> * Get session and include a jsp.
> * Make sure session cookie isn't lost.
> */
>
> package dispatch;
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class IncludeJspWithSession extends HttpServlet
>
> {
> public void service(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException
> {
> PrintWriter out = res.getWriter();
> res.setContentType("text/plain");
>
> HttpSession mySession = req.getSession(true);
>
> RequestDispatcher rd =
> getServletContext().getRequestDispatcher("/Inner.jsp");
> rd.include(req,res);
> }
> }
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]