You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/02/06 14:35:49 UTC

DO NOT REPLY [Bug 6267] New: - RequestDispatcher breaks on URLs with anchors

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=6267>.
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=6267

RequestDispatcher breaks on URLs with anchors

           Summary: RequestDispatcher breaks on URLs with anchors
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mitchell.morris@cingular.com


ServletRequest.getRequestDispatcher(URL).forward() forwards to an invalid 
location if the URL supplied includes an anchor name. That is,
    request.getRequestDispatcher("/sample.jsp").forward(request, response);
works correctly, but:
    request.getRequestDispatcher("/sample.jsp#top").forward(request, response);
breaks with a "resource not available" error from Tomcat 4.0.1 final.

I will attempt to attach a WAR file that contains a servlet and JSP pages that 
reproduce the issue.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>