Can someone tell me if this is correct behavior or if this is a bug?
In the init method of my servlet, I have the following line of code:
System.out.println(config.getServletContext().getRealPath("test.xml"));
The result I get is this:
c:\projects\leadsdb\deploy\webtest.xml
The root of the web site is c:\projects\leadsdb\deploy\web
It seems to me that getRealPath should return:
c:\projects\leadsdb\deploy\web\test.xml
Is this a bug? Could someone either confirm or deny this bug for me?
- RE: getServletContext().getRealPath() bug? Jason Rowland
- RE: getServletContext().getRealPath() bug? Mark Delanoy
- RE: getServletContext().getRealPath() bug? Matt Krevs
- Re: getServletContext().getRealPath() bug? Christian Sell
