Application configuration file

2014-01-07 Thread Giuliano Catrambone
Hi all, can someone suggest me how to manage an application configuration file in a struts application? I'm thinking a configuration file like myapp.properties Is there a place in a struts app where I can read the properties cfg file just once and share it in every

Re: Application configuration file

2014-01-07 Thread Chris
...@catrasoftware.it a écrit : Hi all,     can someone suggest me how to manage an application configuration file     in a struts application?     I'm thinking a configuration file like         myapp.properties     Is there a place in a struts app where I can read the properties cfg file just

Re: Application configuration file

2014-01-07 Thread Lukasz Lenart
.n5.nabble.com/Struts2-and-JDBC-How-to-read-jdbc-properties-only-once-for-100-or-1000-users-td5714995.html Le Mardi 7 janvier 2014 10h17, Giuliano Catrambone giulia...@catrasoftware.it a écrit : Hi all, can someone suggest me how to manage an application configuration file

RE: application configuration

2004-07-19 Thread Pilgrim, Peter
-Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 12:26 To: Struts Users Mailing List Subject: RE: application configuration I tend to put such things in XML files rather than properties files nowadays. When the app starts up I have a plugin

application configuration

2004-07-08 Thread j h
If there are specific properties that need to be configured on deployment, where should these be put? you could put these in the application.properties file and read these in from an Action class every time they are needed: MessageResources mr = getResources(request); String config =

RE: application configuration

2004-07-08 Thread Andrew Hill
. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of j h Sent: Thursday, 8 July 2004 19:23 To: [EMAIL PROTECTED] Subject: application configuration If there are specific properties that need to be configured on deployment, where should these be put? you could put

Re: application configuration

2004-07-08 Thread j h
Please can you give some example code for this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: application configuration

2004-07-08 Thread Viral_Thakkar
, July 08, 2004 4:56 PM To: Struts Users Mailing List Subject: RE: application configuration I tend to put such things in XML files rather than properties files nowadays. When the app starts up I have a plugin read the files and create configuration objects (using Digester), and put these objects

RE: application configuration

2004-07-08 Thread Andrew Hill
) -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 July 2004 19:56 To: Struts Users Mailing List; [EMAIL PROTECTED] Cc: Nilesh Suresh Rajurkar Subject: RE: application configuration I have a java file which read few properties file and put the key and values read from

RE: application configuration

2004-07-08 Thread Geeta Ramani
, July 08, 2004 8:01 AM To: Struts Subject: RE: application configuration Thats one approach. The other is to use a struts plugin. I guess its a matter of taste. My personal preference is for plugins but either way also can. -Original Message- From: Viral_Thakkar [mailto:[EMAIL

Re: application configuration

2004-07-08 Thread James Mitchell
Subject: RE: application configuration Thats one approach. The other is to use a struts plugin. I guess its a matter of taste. My personal preference is for plugins but either way also can. Just implement the org.apache.struts.PlugIn interface and declare the plugin in your struts-config.xml file

RE: application configuration

2004-07-08 Thread McCormack, Chris
easily. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of j h Sent: Thursday, 8 July 2004 19:23 To: [EMAIL PROTECTED] Subject: application configuration If there are specific properties that need to be configured on deployment, where should these be put? you could put

RE: application configuration

2004-07-08 Thread Kailash Vasani
exactly once (assuming that you dont have class loader related maze :-) Kailash -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 5:54 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: application configuration Viral: Look at Struts

RE: application configuration

2004-07-08 Thread Geeta Ramani
' Subject: RE: application configuration Plugin approach has some disadvantages, namely, it gets invoked for all the HTTP GET / POST requests, that includes GET issued for things like images, CSS files etc. in my opinion, Servlet approach should be fine

RE: application configuration

2004-07-08 Thread Andrew Hill
for that, but it just seems like a bad idea to me. -Original Message- From: Kailash Vasani [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 July 2004 20:45 To: 'Struts Users Mailing List' Subject: RE: application configuration Hi Viral Andrew, I dont have more information, but assumption is that Viral has

RE: application configuration

2004-07-08 Thread Hibbs, David
I'll give you a good reason... file access inevitably risks IOExceptions, and exceptions don't propogate well from a static block. That is to say, when the ClassLoader invokes the static block, it is not invoked from within your code. The exception gets thrown and propogates