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 2001/09/24 12:00:26 UTC

DO NOT REPLY [Bug 3790] New: - getRealPath returns context path twice

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

getRealPath returns context path twice

           Summary: getRealPath returns context path twice
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dylans@xs4all.nl


a call to pageContext.getServletContext().getRealPath(request.getRequestURI())
(this is from a jsp custom tag)
returns:
c:\jakarta-tomcat\webapps\app\app\dir\file.jsp

where the expected response is:
c:\jakarta-tomcat\webapps\app\dir\file.jsp