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
; De : Dave Newton > À : Struts Users Mailing List > 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 >

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

2013-09-06 Thread Umesh Awasthi
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" wrote: > > > Where : server side , in acti

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

2013-09-06 Thread Chris
À : Struts Users Mailing List 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" wrote: > Where : ser

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

Re: Struts 2.2.1.1 : reload .properties files

2011-04-04 Thread Lukasz Lenart
2011/4/1 Sami Dalouche : > So, let's continue the discussion directly on JIRA. We're (ASF community) discussing over the list, so let stick with that idea ;-) > Disabling scanIntervalSeconds is exactly what I wanted to do, because I do > not want jetty to redeploy. I directly edit the files in ta

Re: Struts 2.2.1.1 : reload .properties files

2011-04-01 Thread Sami Dalouche
Hi, Since I believe it is a bug in Struts2 (or at least, a bug in the documentation), I created a JIRA issue https://issues.apache.org/jira/browse/WW-3602 So, let's continue the discussion directly on JIRA. Disabling scanIntervalSeconds is exactly what I wanted to do, because I do not want

Re: Struts 2.2.1.1 : reload .properties files

2011-03-31 Thread Lukasz Lenart
2011/3/31 Sami Dalouche : >  - change pom.xml: 0 "scanIntervalSeconds Optional. The pause in seconds between sweeps of the webapp to check for changes and automatically hot redeploy if any are detected. By default this is 0, which disables hot deployment scanning. A number greater than 0 enables i

Struts 2.2.1.1 : reload .properties files

2011-03-31 Thread Sami Dalouche
Hi, I cannot get auto-reload of .properties files to work with struts 2.2.1.1. (with the mail sample app) Steps to reproduce: - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211 - Extract - cd src/apps/mailreader - change pom.xml: 0 - change src/main/java

localization properties files working in WEB-INF/classes and not in WEB-INF/lib/NAME.jar

2009-10-13 Thread Ignacio de Córdoba
Hi there, I am facing a strange problem. My properties files work fine when I put them unjarred in /WEB-INF/classes/com/mypackage/package_en.properties /WEB-INF/classes/com/mypackage/package_en.properties but struts2 actions and tags (s:text) won't find them if I include them in the sam

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-13 Thread Cristian Peraferrer
ee this is not possible. .properties files are always ASCII. The only possibility to include non-ASCII characters is using the Unicode codes \u. I do hate this. There might be a way to extend the resource bundle framework to support files using other encodings, but I never found a re

RE: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Muthu Velappan
: Rommel Garcia Subject: Re: [s2] Using UTF-8 in .properties files Hi Christian, There are two sides of the story here. One is to type those UTF-8 characters onto your properties file (probably several combination of key strokes) and make sure that file editor you are using is configured for

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread redstun
What about this way 1. use UTF-8 properties file and directly put plain Unicode characters in it. 2. during your build, add a post build step to call native2ascii and convert all the properties files to have Unicode characters escaped. the post build step should be easy to implement with ANT

Re: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Charlesmel Carino
encoded files. If that is not happening then your characters get funky. Rommel From: Cristian Peraferrer To: user@struts.apache.org Sent: Thursday, April 9, 2009 5:28:29 AM Subject: [s2] Using UTF-8 in .properties files Hi, How I can use UTF-8 in the .properties

Aw: Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread kindlerm
It is definitely possible to develop non-English applications using resource bundles. I typically put the Unicode codes (\u) in the .properties files when developing apps which must support e. g. cyrillic text. This is not as comfortable as it could be, but there are web based converters

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Paweł Wielgus
capable to use other encoding than ASCII? I can't understand that. > > Any idea? > > Thanks, > Cristian. > > On 09/04/2009, at 11:39, kindl...@arcor.de wrote: > >> If you look in the Java docs, you will see this is not possible. >> .properties files are alw

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Cristian Peraferrer
.@arcor.de wrote: If you look in the Java docs, you will see this is not possible. .properties files are always ASCII. The only possibility to include non-ASCII characters is using the Unicode codes \u. I do hate this. There might be a way to extend the resource bundle framework to sup

Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread kindlerm
If you look in the Java docs, you will see this is not possible. .properties files are always ASCII. The only possibility to include non-ASCII characters is using the Unicode codes \u. I do hate this. There might be a way to extend the resource bundle framework to support files using other

[s2] Using UTF-8 in .properties files

2009-04-09 Thread Cristian Peraferrer
Hi, How I can use UTF-8 in the .properties files? (I need the .properties files for i18n, so loggically I will need characters other than the contained in ASCII or latin1). Thanks, Cristian. -- GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch

Re: [S2] formatting informations in properties files

2007-10-02 Thread Chris Pratt
On 10/2/07, setecastronomy <[EMAIL PROTECTED]> wrote: > I wonder if there is a smarter and centralized way to store the formatting > informations used in different jsp pages associated to different actions. > I believe you can either do it at the package level using something like: com/mycompany/

[S2] formatting informations in properties files

2007-10-02 Thread setecastronomy
In my jsp pages I often need to limit the number of decimals and I learnt how to create a properties file with the same name of the action and use the s:text tag: I ended up with many properties files which have most the same formatting informations. I wonder if there is a smarter and

Re: Properties files

2007-06-05 Thread vikas rao
if(!key.equals(null) && !key.equals("")) { value=confdetails.getString(key); } return value; } } On 6/5/07, Asaf Paris Mandoki <[EMAIL PROTECTED]> wrote: Is there a standard way to

Re: Properties files

2007-06-05 Thread Frank W. Zammetti
9059-695-1) and "JavaScript, DOM Scripting and Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! Asaf Paris Mandoki wrote: Is there a standard way to read properties files

Properties files

2007-06-05 Thread Asaf Paris Mandoki
Is there a standard way to read properties files I create? Maybe a jakarta commons library? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how can i use two properties files?

2006-09-19 Thread Balwinder Kumar
To: Struts Users Mailing List Subject: Re: how can i use two properties files? Ex code here In jsp: If it is from Image resources: If It is from Message resources no need or bundle bcoz there is no bundle name in messge-resources ie it is default message

Re: how can i use two properties files?

2006-09-19 Thread SrinivasaReddy
/> If It is from Message resources no need or bundle bcoz there is no bundle name in messge-resources ie it is default message resources Regards Srinivasa Reddy ----- Original Message - From: "Mallik" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 19, 2006 5:42

how can i use two properties files?

2006-09-19 Thread Mallik
can-i-use-two-properties-files--tf2298661.html#a6386912 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Monkeyden
Assuming you meant that you want to add errors in the Action, rather than the ActionForm, in your Action... 1. Create an empty ActionErrors object. Let's call it "errors". 2. Add messages to it as necessary (e.g. errors.add("propertyName" ,new ActionMessage("msg.key"));) 3. Then call the

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Laurie Harper
chamal desilva wrote: Hi, I want store all messages in a properties file called MessageProperties. I added this line to struts config file. How can I retireve values in properties file from my action classes in order to display them using tag. Use getResources(request, key), where 'key' is

Using properties files other than ApplicationProperties

2006-07-07 Thread chamal desilva
Hi, I want store all messages in a properties file called MessageProperties. I added this line to struts config file. How can I retireve values in properties file from my action classes in order to display them using tag. Thanking You, Chamal.

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Mick.Knutson
iling List' Subject: RE: Properties Files? (to avoid hardcoding server locations) > Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be able to access it. -- Tim Slattery [EMAIL PROTECTED] --

Re: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Dave
Ahhh Do I need to declare the resource bundle in the struts-config.xml file the way the messageresources are declared. or is that only for the message resouces? On Mon, 20 Sep 2004 16:02:43 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > How would I create an ApplicationResources.pr

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> How would I create an ApplicationResources.properties? > Ideally I'd like to have a properties file that had > > server.1=www.bla.com > server.2=www2.bla.com > etc > > Then read them into an array of appropriate objects, then > loop through the objects, attempting to connect to each one in tu

Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Dave
All Another newbie question. I have a list of 10 servers I need to loop through and connect to in turn inside of my LoginAction object what's the best way to keep the list of attributes so they arent hard coded (I can't use a database) How would I create an ApplicationResources.properties? Idea

Error Messages Using tiles-defs.xml from Properties Files

2004-06-01 Thread Srinivas Rao
Hi to all, How to Display Error Messages from ApplicationResource Bundle Using Tiles by tiles-defs.xml. I am able to display messages without using Tiles. Thanks Srinivas - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger