RE: Load MessageResource from custom file path

2007-03-01 Thread Andrzej Bengner | e-direct Polska Sp. z o.o.
> I need to load file dynamically, because properties file must be > located outside /WEB-INF dir. Is there any way to obtain that? In that case, I'd recommend taking a look at Struts' resource loading code and make sure you're doing the equivalent. L. OK, thanks. Andy -

Re: Load MessageResource from custom file path

2007-03-01 Thread Laurie Harper
Andrzej Bengner | e-direct Polska Sp. z o.o. wrote: The ususal way to expose resource bundles for use with Struts1 is to include the properties files in the webapp's classpath, configure them in struts-config.xml and let Struts deal with loading them. Is there a reason you need to store the files

RE: Load MessageResource from custom file path

2007-02-27 Thread Andrzej Bengner | e-direct Polska Sp. z o.o.
The ususal way to expose resource bundles for use with Struts1 is to include the properties files in the webapp's classpath, configure them in struts-config.xml and let Struts deal with loading them. Is there a reason you need to store the files external to the webapp and load them manually? Thanx

Re: Load MessageResource from custom file path

2007-02-27 Thread Laurie Harper
The ususal way to expose resource bundles for use with Struts1 is to include the properties files in the webapp's classpath, configure them in struts-config.xml and let Struts deal with loading them. Is there a reason you need to store the files external to the webapp and load them manually?

Load MessageResource from custom file path

2007-02-27 Thread Andrzej Bengner | e-direct Polska Sp. z o.o.
Hello I can not load MessageResources from my custom file path. I can load for taglib, but how can I do with ? For example, here is my Struts action snippet: URL[] urls = new URL[1]; try { urls[0] = new URL("file:c:/my_dir/messages/"); } catch (MalformedURLException e) { log.err