tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Harrop <>
Subject TC 3.2 cf 4m5: trailing slash and getRealPath
Date Thu, 11 Jan 2001 08:45:59 GMT

We have Tomcat 3.2 running under Windows NT.  When 
ServletContext.getRealPath is called on a String which ends with a 
trailing slash, for example "WEB-INF/xsl/", that String is correctly 
converted into the absolute path we expect (ie complete with trailing 

With Tomcat 4 milestone 5 under Linux, getRealPath seems to drop the 
trailing slash, so that the absolute path in the example above would end 
with "WEB-INF/xsl".

Is this the expected behaviour?



View raw message