tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Batsheva Raviv" <>
Subject RE: calling a config file from bean
Date Sun, 08 Jul 2001 18:04:49 GMT
it is very helpful,

Thank you,

-----Original Message-----
From: Wyn Easton []
Sent: Sunday, July 08, 2001 3:50 AM
Subject: Re: calling a config file from bean

Look at ResourceBundle in the java docs.
You can use the getBundle()method to load property
files.  The classpath is searched for the property
file.  So you can put the property file in you web
apps. "classes" directory or in a jar file under

--- Batsheva Raviv <> wrote:
> has anyone wrote a method to read a config file from
> a bean?
> how can I call a config file from the bean.
> if I use Servlet I can use the web.xml file, but I
> call a bean file from the
> jsp page.
> where should I put the config file? do I have to
> hard code the path to the
> config file.
> Thank you,
> Batsheva

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

View raw message