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
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
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 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
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.
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]
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,
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 a
-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 class (whether you
: 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 so that it would work without reloading
the appliation. I
know that you were
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: 'Struts Users Mailing List'
Subject: RE
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 to
, 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
PropertyMessageResources, I could probably do this
one fairly quickly as well. Might even
: Chappell, 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 PowerBooks
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
:[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
so that the properties can be loaded from database dynamically.
Extend the message
did you put it your struts-config file?
i have the following in my struts-config.xml file:
message-resources
parameter=resources.ApplicationResources/
( I put it into my resources directory)
Samanth Athrey [EMAIL PROTECTED]
08/13/03 10:57 AM
Please respond to Struts Users Mailing List
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 file,
is 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 List' [EMAIL PROTECTED]
Subject: RE
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:
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
:[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 great in the struts config.
-Original Message-
From: Kommana
started on your own application
I want to 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]
Subject: RE: application.properties
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]
.
-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 your
appname/WEB-INF
to 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]
Subject: RE: application.properties file location - Internationalisation
is 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 List' [EMAIL PROTECTED]
Subject: RE
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
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 to right). Sorry, I'm not sure. :)
-Original Message
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
From what you are saying I think you should try:
message-resources parameter=application/
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
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
Subject: RE
to curious about which one is better approach,ofcourse both will work fine.
Thanks,
-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
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...
/action-mappings
message-resources parameter=packageName.ApplicationResources/
/struts-config
Florent
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
35 matches
Mail list logo