PQ78382: RequestDispatcher does not find correct
context in nested code
Downloadable files
Abstract
A servlet that uses the getNamedDispatcher method to call
a JSP results in a FileNotFoundException being thrown.
Download Description
One servlet in a web application includes a servlet in another web
application, which in turn includes a JSP. Now the second servlet does not
call the JSP by its path but defines a servlet for the JSP and uses
getNamedDispatcher to call the JSP. When we execute this scenario, the JSP
engine is looking up the the JSP with the wrong path, and we get a
java.io.FileNotFoundException exception. The scenario fails only under
these circumstances; if it is called directly into the second
circumstances; if it is called directly into the second servlet, the JSP
include succeeds and if we include the JSP by its path, it succeeds also.
USERS AFFECTED: WebSphere Application Server 5.0.1 and 5.0.2 users of
namedDispacther in their servlets to include other servlets and JSPs.
When one servlet in a web application includes a servlet in another web
application, which in turn includes a JSP. The second servlet does not
call the JSP by its path but defines a servlet for the JSP and uses
getNamedDispatcher method to call the JSP. When this scenario is executed,
the JSP engine is
looking up the JSP with the wrong path, and throws a
java.io.FileNotFoundException exception.
This problem is caused by the NamedDispatch which did not set the
path_info attribute of the included servlet.
Prerequisites
Please download the UpdateInstaller below to install this fix.