Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-08 Thread Chris
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Leonidas Papadakis
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
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 ? > > > > >

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Umesh Awasthi
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Miguel Almeida
> 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

RE: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Martin Gainty
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

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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®

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread umeshawasthi
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

Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
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. .

Re: external properties

2004-12-17 Thread Wendy Smoak
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

Re: external properties

2004-12-17 Thread Frank W. Zammetti
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

Re: external properties

2004-12-17 Thread fzlists
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

RE: external properties

2004-12-17 Thread Jim Barrows
> -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

external properties

2004-12-17 Thread liooil
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