I have a question which I think is a flaw in the servlet spec.

ServletContext has a method:
  URL getResource(String path) throws MalformedURLException

It seems that this should construct an URL using the Context
URL as the base and the path as the extra info.  Some
massaging needs to happen to make sure the path is treated
as context relative and not server relative, but okay.  And
since this method throws MalformedURLException this seems to
confirm my thought.

But, the URL must have a scheme and what should that be?
Assuming that this object is on the server then it might be
available via both http and https, for example.  Which form
should the method return?  It can't guess from the request
since this object is associated with the application and not
a single request.  Just assuming http doesn't seem the right
thing either.

I'm confused.  What am I missing?

Howard

___________________________________________________________________________
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

Reply via email to