I've got a question with ServletContext.getResource() This method returns a java.net.URL object. In the servlet api document, description of this method says: The resource content is returned directly, so be aware that requesting a .jsp page returns the JSP source code. Use a RequestDispatcher instead to include results of an execution.
my question is, how can a URL "returns the JSP source code" what does it mean? Thanks --Skywalker
The URL returned is based in what the ClassLOader can 'see'. The ClassLoader has access to Files, but nothing else. Therefore the reference to the JSP is a file url and not a http url. Dave
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.