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
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
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
; 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
>
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
À : 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
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
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
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
> 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
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
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®
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
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
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
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
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
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
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
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
: 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
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
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
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
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
.@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
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
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
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/
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
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
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
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]
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
/>
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
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]
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
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
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.
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
> 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]
--
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
> 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
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
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
45 matches
Mail list logo