Hi Chris,

I'm not sure if struts has a feature that would read property files and put
them in the Application scope for you automatically.

You can have a look at
http://commons.apache.org/proper/commons-configuration/userguide/user_guide.html
which will allow you to read the properties file. Then you have several
options for exposing the properties to your Actions, one of them would be
to store an object in the Application map and have your actions implement
ApplicationAware.

Antonios





On 3 June 2014 12:10, Chris <christal...@yahoo.fr> wrote:

> Hello,I would like to use properties (*) written in an  external file, and
> read them only once.
> Do I have to use ApplicationAware, or something else.
> Whatever, could you give examples please ?
>
> (*) some properties like JDBC or LDAP connection's parameters.
>
> Thanks
>
> Chris

Reply via email to