tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6348] New: - getNamedDispatcher() and JSP
Date Sun, 10 Feb 2002 10:56:16 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: vmassol@octo.com


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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message