Thanks Leonidas
Hi there,
webwork used to have a class that would easily read
external sources like xml files, but i do not recall the class name now. If you
want to read from simple property files you could use something
like :
String path = ServletActionCo
fr>
> Envoyé le : Vendredi 6 septembre 2013 13h45
> Objet : Re: Struts 2.3.15.1 How to read external properties files or conf
> files
>
>
> Have you tried http://commons.apache.org/proper/commons-configuration/
> it can read various type of property files
>
>
> On Fri, Sep
Thanks ,
I 'll try with commons-configuration
De : Umesh Awasthi
À : Struts Users Mailing List ; Chris
Envoyé le : Vendredi 6 septembre 2013 13h45
Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files
Have you tried
lare and use external files to work with
> external properties.
>
> host=xxx.xxx.xxx.xxx
> port=
> ...etc
>
> Should I understand that only few people use external configuration files
> with struts web applications ?
>
>
>
>
>
Have you tried http://commons.apache.org/proper/commons-configuration/
it can read various type of property files
On Fri, Sep 6, 2013 at 5:10 PM, Chris wrote:
> In fact the problem is how to declare and use external files to work with
> external properties.
>
> host=xxx.xxx.xxx.xxx
In fact the problem is how to declare and use external files to work with
external properties.
host=xxx.xxx.xxx.xxx
port=
...etc
Should I understand that only few people use external configuration files with
struts web applications ?
De : Dave Newton
rs Mailing
List
Envoyé le : Vendredi 6 septembre 2013 13h15
Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files
Without any code it's hard to know what's happening.
I do ask you to seriously reconsider refactoring database access out of
the action or
nvoyé le : Vendredi 6 septembre 2013 13h13
Objet : RE: Struts 2.3.15.1 How to read external properties files or conf files
if you did not place log4j.properties on classpath then
Set the resource string variable to the value of the log4j.configuration system
property. The preferred way to sp
perties
> or
>
> java.io.FileNotFoundException : ldapconfiguration.conf
>
>
> Regards
>
>
>
> De : "umeshawas...@gmail.com"
> À : Struts Users Mailing List ; Chris <
> christal...@yahoo.fr>
> Envoyé le : Vendredi 6 septembre 2013
> De : "umeshawas...@gmail.com"
> À : Struts Users Mailing List ; Chris
>
> Envoyé le : Vendredi 6 septembre 2013 10h50
> Objet : Re: Struts 2.3.15.1 How to read external properties files or conf
> files
>
>
> Log4j file will be ready by Log4j f
ulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Fri, 6 Sep 2013 09:40:03 +0100
> From: christal...@yahoo.fr
> Subject: Struts 2.3.15.1 How to read external properties files or conf files
> To: user@struts.apache.org
>
> Using log4j.pr
st ; Chris
Envoyé le : Vendredi 6 septembre 2013 10h50
Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files
Log4j file will be ready by Log4j framework and not exactly by struts2
Can you define where and how you want to read your property files?
Sent from BlackBerry®
Users Mailing List"
Subject: Struts 2.3.15.1 How to read external properties files or conf files
Using log4j.properties instead of log4j.xml is not a problem with Struts
2.3.15.1 ( or should it be ? )
But with my own properties files ( jdbc.properties ) or configuration files (
ldap
Using log4j.properties instead of log4j.xml is not a problem with Struts
2.3.15.1 ( or should it be ? )
But with my own properties files ( jdbc.properties ) or configuration files (
ldap.conf ) it doesn't work.
Is there any example with external files .
Not an upload file by input forms. .
From: "liooil " <[EMAIL PROTECTED]>
> What would be the best pratice to get properties from an external file?
> (I mean this file is not part of my war).
> I'd like it to be read on servelt startup and properties to be be
> available in servlet context ...
> I though about a struts plugIn , but it
Is the path to the config file something you can hard-code? If so, how
about simply a class with a static initializer block to read the config
file, then expose the values through a static getConfig() method
returning a static HashMap? That's about as simple, light-weight and
environment-agno
Is the path to the config file something you can hard-code? If so, how about
simply a class with a static initializer block to read the config file, then
expose the values through a static getConfig() method returning a static
HashMap? That's about as simple, light-weight and environment-agnos
> -Original Message-
> From: liooil [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: external properties
>
>
> Hello world,
>
> What would be the best pratice to get properties from an
> external
Hello world,
What would be the best pratice to get properties from an external file?
(I mean this file is not part of my war).
I'd like it to be read on servelt startup and properties to be be
available in servlet context ...
I though about a struts plugIn , but it seems a bit heavy solution.
Eas
19 matches
Mail list logo