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.
 
URL LANGUAGE SIZE(Bytes)
UpdateInstaller US English 7000000
 
 
Installation Instructions
Please review the readme.txt for detailed installation instructions.
 
URL LANGUAGE SIZE(Bytes)
Readme US English 2138
 
Download package
What is DD?
Download RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ78382 9/18/2003 US English 8012 FTP DD
 
Technical support
1-800-IBM-SERV (U.S. Only)
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
Problems (APARS) fixed
PQ78382
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Servlet Engine/Web Container
Operating system(s): Windows
Software version: 5.0.2
Software edition:
Reference #: 4005595
IBM Group: Software Group
Modified date: Dec 5, 2005