I don't have cvs access at the moment, so if anyone is interested in
this fix:


   public void forward(ServletRequest request, ServletResponse response)
        throws ServletException, IOException
    {

.....

        HttpSession oldSession = realRequest.getSession(false);
        context.getContextManager().processRequest(realRequest);
        realRequest.setSession(oldSession); // fix for side-effect

....
    }


The problem is when you forward with a new session,
org.apache.tomcat.session.StandardSessionInterceptor
clobbers it.  It's probably related to its logic
about cookies being set or some such thing, but
I don't think it really makes sense for a servlet
to forward to another servlet, and the second
servlet not have the same session as the first,
so this is a basic workaround for some logic
that doesn't seem to make sense in the case
of forward().

I'm sure there's a more elegant fix, but this seems
to work better than no fix at all.

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to