> From: "Bill Barker" <wbarker@wilshire.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, February 18, 2003 10:43 PM
> Subject: Re: Location of property files
> <%@ page import="java.util.*" %>
> .....
> <%
> Properties myProps = new Properties();
> InputStream pin =
> getServletContext().getResourceAsStream("/WEB-INF/my.properties");
> myProps.load(pin);
> pin.close();
> %>
Is that portable? Is there anyplace in the spec that mentions that /WEB-INF/
is actually available as a resource? Or is it fair to say that anything with
an "absolute" path off of the ROOT of the context is available?
(Mind, I'm not denying that it works, I'm curious if it working is a fluke,
or is it "guaranteed" across platforms.)
Regards,
Will Hartung
(willh@msoft.com)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
|