struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <christal...@yahoo.fr>
Subject Re: Struts 2.3.15.1 How to read external properties files or conf files
Date Fri, 06 Sep 2013 11:32:01 GMT
Hi,
OK for refactoring database access out of the action.
But the problem is still there :  How to find a good framework to read external files in
a struts web application ?




________________________________
 De : Miguel Almeida <miguel@almeida.at>
À : Chris <christalkto@yahoo.fr> 
Cc : "umeshawasthi@gmail.com" <umeshawasthi@gmail.com>; Struts Users Mailing List <user@struts.apache.org>

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 you'll end up with a huge, very hard to test action class.

Miguel Almeida

On Fri, 2013-09-06 at 10:50 +0100, Chris 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 : "umeshawasthi@gmail.com" <umeshawasthi@gmail.com>
> À : Struts Users Mailing List <user@struts.apache.org>; Chris <christalkto@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 <christalkto@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 ?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message