Use ClassLoader or ServletContext's getResourceAsStream method to
load the properties. Then place the properties files in the WEB-INF/classes
directory.
Randy
> -----Original Message-----
> From: Mehrdad Jahansoozi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Packages and their property files.
>
>
> Hi
> We are migrating from applet TCP/IP to HTML / JSP HTTP
> server.
>
> On the server side we have a number of packages that
> use their own property files to read whatever data
> they need and these data change regularly.
>
> While on the applet TCP/IP we just edited the property
> files and restarted the server.
> I was hoping we could continue with this process after
> migration to HTML / JSP HTTP server.
>
> To my surprise after migration these packages can not
> find their corresponding property files anymore.
>
> When I hard code the data from the property files
> everything works, however hard coding is not
> acceptable, since these data change regularly.
> Our design spec. Is very specific that only packages
> should be dealing with the data they need and classes
> outside the packages should not have any knowledge of
> these property files and the data they contain.
>
> Your suggestions / input is appreciated.
>
>
> =====
> Mehrdad Jahansoozi
> Java Developer Consultant
> http://www.geocities.com/jahansoz/
> 2304-60 Pleasant Blv Toronto Ont M4T 1K1 Canada
> Phone 416 924-0882
> Best time to contact 9AM - 8PM. EST
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>