DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6348>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6348

getNamedDispatcher() and JSP

           Summary: getNamedDispatcher() and JSP
           Product: Tomcat 3
           Version: 3.3.x Nightly
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When using getNamedDispatcher() to get a request dispatcher on a JSP that is 
defined in web.xml, Tomcat 3.3.x fails to forward to the correct page and 
returns a 404 instead.

web.xml :

    <servlet>
        <servlet-name>TestJsp</servlet-name>
        <jsp-file>/test/test.jsp</jsp-file>
    </servlet>

code :

        RequestDispatcher rd =
            config.getServletContext().getNamedDispatcher("TestJsp");
        rd.forward(request, response);

result :

<head><title>Not Found (404)</title></head>
<body><h1>Not Found (404)</h1>
Original request: /test/ServletRedirector
<br><br>
<b>Not found request:</b> /test/ServletRedirector
</body>

Note: This code works on Tomcat 4.x and Tomcat 3.2.4 but not on Tomcat 3.3.x 
(nightly build of 6th of February 2002).

Thanks
-Vincent

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to