Can anyone confirm the API behaviour of the:
URL ServletContext.getResource(String path)
call for me?
Is it suppoosed to only return resources that are held in the servlet
engine or any resource it can find?
Eg: I have a a Servlet engine and I load a servlet called WWW mapped
to .HTML (ie: a web server servlet).
Then:
URL p=ServletContext.getResource("/docs/fred.HTML");
will return a URLHandler for the file fred.HTML using the servlet
WWW.
But if I do this:
URL p=ServletContext.getResource("/doc/fred.pl");
I will get an error because fred.pl is not a resource that is
available through the engine.
Is the above the behaviour or should the call return a URLHandler to
fred.pl if it exists, despite the fact that the ServletContext doesn't
have a Servlet to handle it?
Glad if anyone can help.
Nic Ferrier
Tapsell-Ferrier Ltd
www.tapsellferrier.co.uk
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html