tomcat-users mailing list archives

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

Thank you,
Batsheva


-----Original Message-----
From: Wyn Easton [mailto:wyneaston@yahoo.com]
Sent: Sunday, July 08, 2001 3:50 AM
To: tomcat-user@jakarta.apache.org
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
"lib".

--- Batsheva Raviv <braviv@mbird.com> 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
http://personal.mail.yahoo.com/


Mime
View raw message