Hi Esteban,

try

p.getClass().getResourceAsStream("/WEB-INF/icard.properties");
(inside WEB-INF)
or
p.getClass().getResourceAsStream("/WEB-
INF/classes/icard.properties");
(inside classes)
or
p.getClass().getResourceAsStream("/WEB-
INF/lib/icard.properties");
(inside lib)

If this doesn't work, try
getServletContext().getResourceAsStream(...)
This one will work.

Good luck.

Andreas

On 2 Dec 2002 at 12:33, Esteban González wrote:

> Hi!
> I´ve just moved an old app that we had running using Jserv to
> tomcat4.0.3
>
> But i have problems with this
>     p = new Properties();
>     InputStream is =
>     p.getClass().getResourceAsStream("/icard.properties");
> I keep getting null no matter where i put the icard.properties
> file.
>
> i´ve placed icard.properties inside WEB-INF/lib and
> WEB-INF/classes and it´s also on the classpath...
>
> any workarounds to this issue?...  I´m trying not to use the
> java.io.* approach...
>
> ----------------------------------
> Esteban González
>
> Departamento de Sistemas
> ASSIST-CARD International
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]> For
> additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>



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

Reply via email to