I don't understand the problem.

Reading a file is trivial. Is the issue getting the values *out* of the
file? I mean, Java provides its own properties handling that can read
classpath resources.

Dave



On Fri, Sep 6, 2013 at 7:40 AM, Chris <christal...@yahoo.fr> wrote:

> In fact the problem is how to declare and use external files to work with
> external properties.
>
> host=xxx.xxx.xxx.xxx
> port=xxxx
> ...etc
>
> Should I understand that only few people use  external configuration files
> with struts web applications ?
>
>
>
> ________________________________
>  De : Dave Newton <davelnew...@gmail.com>
> À : Struts Users Mailing List <user@struts.apache.org>
> Envoyé le : Vendredi 6 septembre 2013 13h17
> Objet : Re: Struts 2.3.15.1 How to read external properties files or conf
> files
>
>
> How are you trying to load them? As a resource on the classpath?
>
> Dave
> On Sep 6, 2013 5:51 AM, "Chris" <christal...@yahoo.fr> wrote:
>
> > Where : server side , in action , like ActionSupport
> >
> > First  example : Login.java ( like in struts-2.3.15.1-blank )
> > class Login extends com.opensymphony.xwork2.ActionSupport
> > to check and validate user/password ( I need access to LDAP or database )
> >
> > Second Example: A User Request
> > After success login, a web user need to access data ( from LDAP or
> > Database )
> >
> >
> > java.io.FileNotFoundException : jdbc.properties
> > or
> >
> > java.io.FileNotFoundException : ldapconfiguration.conf
> >
> >
> > Regards
> >
> >
> > ________________________________
> >  De : "umeshawas...@gmail.com" <umeshawas...@gmail.com>
> > À : Struts Users Mailing List <user@struts.apache.org>; Chris <
> > christal...@yahoo.fr>
> > 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® on Airtel
> >
> > -----Original Message-----
> > From: Chris <christal...@yahoo.fr>
> > Date: Fri, 6 Sep 2013 09:40:03
> > To: Struts Users Mailing List<user@struts.apache.org>
> > Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
> > 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.conf ) it doesn't work.
> >
> >
> > Is there any example with external files .
> > Not an upload  file by input forms. .
> >
> > Or do we have to use another java classes ?
>



-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>

Reply via email to