Assuming that you want it from a Servlet (and I'm assuming HttpServlet
here), something like:
  ServletContext ctx = getServletContext();
  InputStream in = ctx.getResourceAsStream("/WEB-INF/props/p.properties");
  Properties  props = new Properties();
  props.load(in);


"Hanasaki JiJi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can a properties file be loaded from /WEB-INF/props/p.properties  in
> an unexpanded WAR from servlet code?
>
> Thanks





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to