I have attached patches for two files which I believe fixes the problem I have described below. These are patches to the files from HEAD which would not address Tomcat 4.x but could be applied to the TOMCAT_4 branch also.
Basically, the change I have made is to pass the application variable from the compiled JSP to the JspRuntimeLibrary.include(...) method and use it, if not null, to obtain a RequestDispatcher, otherwise use the request as before.
There are a few issues with cross context in Tomcat 4.1.x. If you want the right behavior (session handling + usage of the methods from the request object), you have to use Tomcat 5.0 (ex: Tomcat 5.0.14). The changes to get that working were rather extensive.
Rémy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]