Re: application.properties

2003-12-29 Thread Brice Ruth
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

RE: application.properties

2003-12-29 Thread Peng, Meimin
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,

Re: application.properties

2003-10-28 Thread Ruth, Brice
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

RE: application.properties

2003-10-28 Thread Wiebe de Jong
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

RE: application.properties

2003-10-28 Thread Paananen, Tero
> 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.

Re: application.properties

2003-10-28 Thread Nathan Maves
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

Re: application.properties

2003-10-28 Thread Ruth, Brice
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

RE: Application.properties

2003-09-17 Thread Paananen, Tero
> 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

RE: [OT] RE: Application.properties

2003-09-16 Thread Andrew Hill
, 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

RE: Application.properties

2003-09-16 Thread James Mitchell
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

RE: Application.properties

2003-09-16 Thread Paananen, Tero
> 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

[OT] RE: Application.properties

2003-09-16 Thread Chappell, Simon P
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

RE: Application.properties

2003-09-16 Thread James
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

RE: Application.properties

2003-09-16 Thread Srikanth Gubba
-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

RE: Application.properties

2003-09-15 Thread James
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 > >

RE: Application.properties

2003-09-15 Thread Paananen, Tero
> 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

RE: application.properties question

2003-08-14 Thread Bailey, Shane C.
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'

Re: application.properties file location

2003-08-14 Thread Florent LOTHON
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

RE: application.properties file location

2003-08-14 Thread Kommana, Sridhar
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

RE: application.properties file location

2003-08-14 Thread Bailey, Shane 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

RE: application.properties file location

2003-08-14 Thread Bailey, Shane C.
>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

RE: application.properties file location

2003-08-14 Thread Kommana, Sridhar
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

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
" <[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

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
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

RE: application.properties file location

2003-08-14 Thread Kommana, Sridhar
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]

RE: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.
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-

RE: application.properties file location

2003-08-14 Thread John Cavacas
, -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

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
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

RE: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.
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

Re: application.properties file location

2003-08-14 Thread message message
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

RE: application.properties file location - Internationalisation

2003-08-14 Thread Rohit Aeron
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

Re: application.properties file location

2003-08-14 Thread Micael
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

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
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

RE: application.properties file location - Internationalisation

2003-08-14 Thread Paananen, Tero
> 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

Re: application.properties file location

2003-08-14 Thread Julie . Huang
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: