> From: "Bill Barker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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
([EMAIL PROTECTED])
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]