[EMAIL PROTECTED] wrote:
>
> Wasn't one of the 3.2.2 changes that you could not request URLs from the
> WEB-INF directory? Possibly its just that and not really all relative URLs.
The IIS and Domino connectors certainly explicitly veto access to the
web-inf directory.
--
Andy Armstrong, Tag
AM
To: [EMAIL PROTECTED]
Subject: [BUG T322] Bug in getServletContext().getResource() for
relative URLs
Bugzilla is down so I am forced to send this to the list:
Relative URLs from a servlet resource do not work (Tomcat 3.2.2).
I have the following code in a Servlet:
URL propURL = getServletCo
According to the spec, the path passed to ServletContext.getResource() must
start with a "/".
> -Original Message-
> From: Stevenson, Chris (SSABSA) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 1:44 AM
> To: [EMAIL PROTECTED]
> Subject: [BUG T322]
Yes, Have a look at this
Bug Id: 4447088
On the Bug Parade at the JDC. I submitted this after trying to use
classloader.getResource() in a servlet. URL doesn't construct a proper
URL string when the constructor you show is used. Works fine on
unix/linux, but windows absolute paths can start wi
Small correction:
> Also, if I do the following:
>
> URL configURL = new URL( url, "config.xml" );
> configURL = new URL( configURL.toString() );
I meant
URL configURL = new URL( new URL( url.toString() ), "config.xml" );
which works.
Bugzilla is down so I am forced to send this to the list:
Relative URLs from a servlet resource do not work (Tomcat 3.2.2).
I have the following code in a Servlet:
URL propURL = getServletContext().getResource(
"/WEB-INF/connection.properties" )
URL configURL = new URL( url, "config.xml" );
T