Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Load MessageResource from custom file path

Laurie Harper

2007-03-01

Replies:

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 external to the webapp and load them manually?
>
> Thanx.
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.