[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

getResource()


Hi,

I don't think I completely understand the method, 
ServletContext.getResource().  The api says, "The path must begin with a 
"/" and is interpreted as *relative* to the current context root."  

I'm trying to write a servlet container and use gnujsp for the jsp 
feature.  However, gnujsp calls getResource() with the entire URI; it's not 
relative to the servlet context.

Let's say the uri is: /servlet/hello.jsp
getResource() is called with /servlet/hello.jsp as the path argument.  I 
would have expected the argument to be: /hello.jsp 

Am I incorrect in my thinking?

Thanks for any help!

Jeff