Hi,

(I sent this to "bugs" a while ago - but no response so far...)

According to the java documentation, the method
javax.servlet.ServletContext.getRealPath(String s):

>Returns a String containing the real path for a given virtual path. For 
>example, the virtual path "/index.html" has a real path
>     of whatever file on the server's filesystem would be served by a 
>request for "/index.html". 

If I write
        <%=  application.getRealPath("/index.html")  %>
from a jsp in a web-app that is rooted at
        C:\orion\applications\foo\foo-web
I obtain the result
        C:\orion\applications\foo\foo-web\index.html
whereas I think I should obtain the result
        C:\orion\default-web-app\index.html

So it looks as if the path is being interpreted relative to the web-app,
although the documentation makes it fairly clear that this should not be
the case.

Thanks,
Nick 

Reply via email to