the last entry overrides any previous entries. I'm not sure how
MessageProperties is implemented, but I always think of a hashmap, where
identical entries will override previous ones.
Otávio Augusto wrote:
Hi all
The application.properties file, from which i retrieve my resouce messages, has g
I think you need to iterate the message out or pass the argument to get the
error out.
you might need to post more details about how you do the key in your
resource and how you try to get the key.
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29,
nope
Nathan Maves wrote:
I use Sun's application server but when I do this all web applications
reload when you deploy a new one out there. Does Tomcat do this as well?
Nathan
On Oct 28, 2003, at 9:48 AM, Ruth, Brice wrote:
You can probably reload or stop/start the individual application,
whi
There is a good article at JavaWorld which shows how to use a timer to
reload property files. Check it out at
http://www.javaworld.com/javaworld/javatips/jw-javatip125.html
Wiebe de Jong
http://frontierj.blogspot.com
-Original Message-
From: Zhou, Qin (Eric) [mailto:[EMAIL PROTECTED]
Se
> Can website pick up the changes from application.properties
> using some way, but without bouncing the applicaiton server?
This is discussed on the list every other week.
The answer is in the list archives.
Summary: implement refreshing on your own. It's fairly
simple to do.
I use Sun's application server but when I do this all web applications
reload when you deploy a new one out there. Does Tomcat do this as
well?
Nathan
On Oct 28, 2003, at 9:48 AM, Ruth, Brice wrote:
You can probably reload or stop/start the individual application,
whilst leaving the applicatio
You can probably reload or stop/start the individual application, whilst
leaving the application server running. At least, this is what I do with
Tomcat all the time ...
Zhou, Qin (Eric) wrote:
Can website pick up the changes from application.properties using some way, but without bouncing the
> I have seen the Message-Resources DB application
> (using OJB) by James Mitchell using which we can put
> the properties in a database and retrieve them. But It
> also needs the container to be reloaded when a change
> has been made.
I tested the OBJMessageResources implementation
yesterday with
, Simon P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 22:58
To: Struts Users Mailing List
Subject: [OT] RE: Application.properties
That's all? I bet Mark does twice that in his lunch breaks! ;-)
I'd help, but I'm too busy drooling over the upgraded 15" Mac PowerBo
September 16, 2003 10:56 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Application.properties
>
>
> > If anyone else has a free minute so spare,
> > that would be great.
>
> Since I already implemented similar things with
> PropertyMessageResourc
> If anyone else has a free minute so spare,
> that would be great.
Since I already implemented similar things with
PropertyMessageResources, I could probably do this
one fairly quickly as well. Might even be able to
reuse the old code for it.
James, could you point me to the right direction
as t
That's all? I bet Mark does twice that in his lunch breaks! ;-)
I'd help, but I'm too busy drooling over the upgraded 15" Mac PowerBooks.
>-Original Message-
>From: James [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 16, 2003 9:42 AM
>To: 'St
OTECTED]
> Sent: Tuesday, September 16, 2003 8:28 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Application.properties
>
>
> James,
>
> Can you please help me with the changes that I can make to the
> DBMessageResources s
-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 2:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Application.properties
That's one way to do it. Although doing so will create a compile-time
dependency on using that cla
aananen, Tero [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 15, 2003 1:49 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Application.properties
>
>
> > Please suggest some ideas or code which will help in creating
> > an extension
> >
> Please suggest some ideas or code which will help in creating
> an extension
> so that the properties can be loaded from database dynamically.
Extend the message resources class you're currently
using and implement a reload() (or whatever) method
in your extended class. Call the reload() method
They are suggested strings. For instance if you don't have the error
prefix, suffix, header and footer specified then you won't get an exception
thrown or anything you just won't get anything printed. You can change the
value if you don't like the error display formatting.
In general, I haven'
Are you sure of you declaration in your struts-config.xml ?
For example if your Ressources file is in classes/packageName/ directory you
must declare as this :
blablabla...
Florent
-Message d'origine-
De : Samanth Athrey <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL P
rs Mailing List
Subject: RE: application.properties file location
what is the best place to specify application.properties file in either
web.xml or struts-config.xml ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
IMO, struts config. I didn't know you could do it in the web.xml, never had
to, works great in the struts config.
-Original Message-
From: Kommana, Sridhar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:58 PM
To: Struts Users Mailing List
Subjec
>From what you are saying I think you should try:
in your struts config file. Since you specifically say
"application.properties" as the name of your file.
For instance my file is also called "application.properties" as opposed to
"aApplicationResources.properties" or something. But since mi
what is the best place to specify application.properties file in either web.xml or
struts-config.xml ?
-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 10:19 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: application.properties
" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: application.properties file location - Internationalisation
Date: Wed, 13 Aug 2003 13:52:44 -0400
I think everything is supported except diagonal right to left (or is it
diagonal left
configured to spanish when you only
have a file for French and English ?
Is there a default or will this an error ?
From: "Bailey, Shane C." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing
what is the best place to specify application.properties file in either web.xml or
struts-config.xml ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
e default and all the rest should be selected
>automatically depending on the remote user's locale. I don't have an
>Internationalization specification on my project so this is what I beilieve
>to be true.
>
>Someone else can verify.
>
>
>
>
>-Original Message-
,
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:13 PM
To: 'Struts Users Mailing List'
Subject: RE: application.properties file location
IMO, struts config. I didn't know you could do it in the web.xml, never had
to, works grea
rename this right to left file to application.properties
and try it out.
Thanks
From: "Bailey, Shane C." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
S
can verify.
-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation
In theory if you have a file called application_fr.properties in you
Play about with it until it works.
From: "Samanth Athrey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: application.properties file location
Date: Wed, 13 Aug 2003 20:27:23 +0530
Hi,
I have my application.properties file stored in the
It will take default one
Regards
Rohit
-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 11:01 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation
In theory if you have a file called
Do you have the application param specified for the action servlet in your
web.xml? If not, I would suggest you look at a standard setup in the
examples and see how they reference the application.properties file.
Here is how I do it in one instance:
action
org.apache.struts.actio
configured to spanish when
you only have a file for French and English ?
Is there a default or will this cause an error ?
From: "Bailey, Shane C." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing
> However what happens if the browser is configured to
> spanish when you only have a file for French and English ?
> Is there a default or will this cause an error ?
It will fall back to using the default resources
defined in "application.properties".
If you do not have a default properties fil
did you put it your struts-config file?
i have the following in my struts-config.xml file:
( I put it into my resources directory)
"Samanth Athrey" <[EMAIL PROTECTED]>
08/13/03 10:57 AM
Please respond to "Struts Users Mailing List"
To: [EMAIL PROTECTED]
cc:
35 matches
Mail list logo