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, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: application.properties



Hi all

The application.properties file, from which i retrieve my resouce messages,
has given me a doubt: is it scanned from the top to the botton or from the
botton to the top? the thing is I made a mistake and added three identical
messages there (errors.login.ivalid), and it always reads the last message.
Maybe it loads the las message that matches the pattern, and overrides the
previous ones. Is that right ?


thanks a lot

Otávio Augusto

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 given me a doubt: is it scanned from the top to the botton or from the botton to the top? the thing is I made a mistake and added three identical messages there (errors.login.ivalid), and it always reads the last message. Maybe it loads the las message that matches the pattern, and overrides the previous ones. Is that right ?

thanks a lot

Otávio Augusto

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 applicaiton server?

Eric Zhou

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 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 applicaiton server?

Eric Zhou

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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] 
Sent: Tuesday, October 28, 2003 8:45 AM
To: [EMAIL PROTECTED]
Subject: application.properties


Can website pick up the changes from application.properties using some way,
but without bouncing the applicaiton server?

Eric Zhou


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, 
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 applicaiton server?

Eric Zhou

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 a little bit of help from James.

I used MySQL, JBoss with standalone Tomcat 4.1.x
and the OJBMessageResources.war supplied by James
with the default settings (added the OJBMessageResources
jar and changed the struts-config.xml to use OJB).

There is NO caching in there. All changes to the
message resources stored in the database were
immediately reflected on the JSP pages.

If you're having problems with db changes not
being reflected on the user interface, I suspect
you have a configuration problem with either
the message resources, OJB or the db.

-TPP


-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application.properties

2003-09-16 Thread Srikanth Gubba
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 working on this earlier but not sure if you had a chance
to complete making the changes to new OJB version.

Thanks in adv
srikanth

-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 actually use it or not).

By default, the Struts MessageResources API does not allow for reloading
and given the nature of the implementation.  Since the returned messages
from your subclass are cached, you must clear the (cached) map of
formatted messages with each call to your implementation's getMessage
method or the MessageResources won't bother to call your method again
(until you reload the app).

This was a very frustrating feature that I had to overcome with my
DBMessageResources implementation and one of the reasons I chose OJB for
the underlying data access (configurable caching, etc).


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Paananen, 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
  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
 when appropriate.
 
   -TPP
 
 -
 This email may contain confidential and privileged material 
 for the sole use of the intended recipient(s). Any review, 
 use, retention, distribution or disclosure by others is 
 strictly prohibited. If you are not the intended recipient 
 (or authorized to receive for the recipient), please contact 
 the sender by reply email and delete all copies of this 
 message.  Also, email is susceptible to data corruption, 
 interception, tampering, unauthorized amendment and viruses. 
 We only send and receive emails on the basis that we are not 
 liable for any such corruption, interception, tampering, 
 amendment or viruses or any consequence thereof.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application.properties

2003-09-16 Thread James
My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.  

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Srikanth Gubba [mailto:[EMAIL PROTECTED] 
 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 so that it would work without reloading 
 the appliation. I
 know that you were working on this earlier but not sure if 
 you had a chance
 to complete making the changes to new OJB version.
 
 Thanks in adv
 srikanth
 
 -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 actually use it or not).
 
 By default, the Struts MessageResources API does not allow 
 for reloading
 and given the nature of the implementation.  Since the 
 returned messages
 from your subclass are cached, you must clear the (cached) map of
 formatted messages with each call to your implementation's getMessage
 method or the MessageResources won't bother to call your method again
 (until you reload the app).
 
 This was a very frustrating feature that I had to overcome with my
 DBMessageResources implementation and one of the reasons I 
 chose OJB for
 the underlying data access (configurable caching, etc).
 
 
 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx
 
 
 
 
  -Original Message-
  From: Paananen, 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
   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
  when appropriate.
  
  -TPP
  
  -
  This email may contain confidential and privileged material 
  for the sole use of the intended recipient(s). Any review, 
  use, retention, distribution or disclosure by others is 
  strictly prohibited. If you are not the intended recipient 
  (or authorized to receive for the recipient), please contact 
  the sender by reply email and delete all copies of this 
  message.  Also, email is susceptible to data corruption, 
  interception, tampering, unauthorized amendment and viruses. 
  We only send and receive emails on the basis that we are not 
  liable for any such corruption, interception, tampering, 
  amendment or viruses or any consequence thereof.
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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: 'Struts Users Mailing List'
Subject: RE: Application.properties


My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.  

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.

snip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 to where's the latest version of the OJB
Message Resources stuff?

http://sourceforge.net/project/showfiles.php?group_id=49385

Is that it?

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application.properties

2003-09-16 Thread James Mitchell
Yes, I believe that is the latest version.  

BTW. Thank you for the help.

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 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
 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 where's the latest version of the OJB
 Message Resources stuff?
 
http://sourceforge.net/project/showfiles.php?group_id=49385

Is that it?

-TPP

-
This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the recipient),
please contact the sender by reply email and delete all copies of this
message.  Also, email is susceptible to data corruption, interception,
tampering, unauthorized amendment and viruses. We only send and receive
emails on the basis that we are not liable for any such corruption,
interception, tampering, amendment or viruses or any consequence
thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: Application.properties

2003-09-16 Thread Andrew Hill
ooo A p** contest! Can I play? ;-)

Done 28 hours this week and its only Tuesday (well for another half hour it
is anyhow).
Did 79 Last week, but only because I was slack and took Sunday off. sigh/

(Could be worse. Was doing 100+s this time last year)

-Original Message-
From: 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.

-Original Message-
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: RE: Application.properties


My time is very limited at the moment.  I'll try to find some time for
this today or tomorrow.

I apologize for putting you off so long.  I'm currently billing ~55
hours at my current gig, coaching 2 of my 3 kids soccer teams, running
the struts-atlanta users group, and tech editing 2 new books (a Struts
book and a JSF book).

If anyone else has a free minute so spare, that would be great.

snip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
when appropriate.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application.properties

2003-09-15 Thread James
That's one way to do it.  Although doing so will create a compile-time
dependency on using that class (whether you actually use it or not).

By default, the Struts MessageResources API does not allow for reloading
and given the nature of the implementation.  Since the returned messages
from your subclass are cached, you must clear the (cached) map of
formatted messages with each call to your implementation's getMessage
method or the MessageResources won't bother to call your method again
(until you reload the app).

This was a very frustrating feature that I had to overcome with my
DBMessageResources implementation and one of the reasons I chose OJB for
the underlying data access (configurable caching, etc).


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: Paananen, 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
  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
 when appropriate.
 
   -TPP
 
 -
 This email may contain confidential and privileged material 
 for the sole use of the intended recipient(s). Any review, 
 use, retention, distribution or disclosure by others is 
 strictly prohibited. If you are not the intended recipient 
 (or authorized to receive for the recipient), please contact 
 the sender by reply email and delete all copies of this 
 message.  Also, email is susceptible to data corruption, 
 interception, tampering, unauthorized amendment and viruses. 
 We only send and receive emails on the basis that we are not 
 liable for any such corruption, interception, tampering, 
 amendment or viruses or any consequence thereof.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:

 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

 
To: [EMAIL PROTECTED]
cc: 
Subject:application.properties file location


Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be 
of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



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 file, there
will be an exception (unless you surpress that in
the message tag).

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
In theory if you have a file called application_fr.properties in
your appname/WEB-INF/classes/resources directory then all the text will
be replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.
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  ?
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
Date: Wed, 13 Aug 2003 11:51:53 -0400
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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:
message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.


-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location
Hi,

I have my application.properties file stored in the classes directory. 
But
the application is unable to locate and load this file. Any tips would 
be
of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret 
des
affaires ; il est etabli a destination exclusive de son destinataire. 
Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) 
de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de 
la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it 
is
intended solely for the attention of   the addressee . Any disclosure, 
use,
dissemination or reproduction (either whole or  partial) of this message 
or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity 
can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 SERVLET
  =--
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueresources.properties.messages/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
This means I have the messages.properties (which is the same as your 
application.properties with a different name) file in a directory/folder 
called resources in classes.

'Hope this helps.

Micael

At 08:27 PM 8/13/2003 +0530, Samanth Athrey wrote:
Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be of
great help.
Thanks,
Samanth Athrey


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 classes directory. But
the application is unable to locate and load this file. Any tips would be 
of
great help.

Thanks,
Samanth Athrey


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: application.properties file location

2003-08-14 Thread John Cavacas
Would specifying the properties file in both struts-config.xml and web.xml 
allow you to use the ftm tags in JSTL?

John

At 12:34 PM 13/08/2003 -0500, you wrote:
1.you can specify application.properties file in struts-config.xml as follows:

  message-resources parameter=ApplicationResources /

2.you can specify application.properties file in web.xml as follows:

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-nameapplication/param-name
param-value/ApplicationResources/param-value
/init-param
  /servlet
just i want 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.  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: 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 commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
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.


I think everything is supported except diagonal right to left (or is it
diagonal left to right).  Sorry, I'm not sure.  :)

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation



Also I was curious about languages ( i.e.Arabic based) which are written 
from right to left.
Can I have a sample file with right to left text
which says the following

welcome.title=Welcome title
welcome.heading=Welcome heading
welcome.message=To get 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 file location - Internationalisation
Date: Wed, 13 Aug 2003 13:21:23 -0400



It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html

I believe Struts will get the correct properties file based on the locale
set for each remote user.

Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties

The first one is the 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-
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/classes/resources directory then all the text will be
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

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 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: application.properties file location
 Date: Wed, 13 Aug 2003 11:51:53 -0400
 
 
 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
 aApplicationResources.properties or something.  But since mine in a
 resources directory off of the classes directory I declare mine as:
 
 message-resources parameter=resources.application/
 
 So I am assuming struts takes the last name in the parameter as the file
 name and anything before it as directory structure.
 
 
 
 -Message d'origine-
 De : Samanth Athrey [EMAIL PROTECTED]
 À : [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date : mercredi 13 août 2003 16:57
 Objet : application.properties file location
 
 
  Hi,
  
  I have my application.properties file stored in the classes directory.
 But
  the application is unable to locate and load this file. Any tips would 
be
 of
  great help.
  
  Thanks,
  Samanth Athrey
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 --
 Ce message est protege par les regles relatives au secret des
 correspondances ; il peut en outre contenir des informations a caractere
 confidentiel ou protegees par differentes regles et notamment le secret 
des
 affaires ; il est etabli a destination exclusive de son destinataire. 
Toute
 divulgation, utilisation, diffusion ou reproduction (totale ou partielle)
 de
 ce message, ou des informations qu'il contient, doit etre prealablement
 autorisee.
 Tout message electronique est susceptible d'alteration et son integrite 
ne
 peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
 message s'il a ete modifie ou falsifie.
 Si vous n'etes pas destinataire de ce message, merci de le detruire
 immediatement et d'avertir l'expediteur de l'erreur de distribution et de
 la
 destruction du message.
 This message is protected by the secrecy of correspondence rules ;
 furthermore it may contain privileged or confidential information that is
 protected by law, notably by the secrecy of business relations rule ; it 
is
 intended solely for the attention of   the addressee . Any disclosure, 
use,
 dissemination or reproduction (either whole or  partial) of this message 
or
 the information contained herein is strictly prohibited without prior
 consent.
 Any electronic message

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.


It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html

I believe Struts will get the correct properties file based on the locale
set for each remote user.

Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties

The first one is the 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-
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/classes/resources directory then all the text will be 
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

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 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: application.properties file location
Date: Wed, 13 Aug 2003 11:51:53 -0400


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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


 Hi,
 
 I have my application.properties file stored in the classes directory. 
But
 the application is unable to locate and load this file. Any tips would be
of
 great help.
 
 Thanks,
 Samanth Athrey
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) 
de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de 
la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity 
can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application.properties file location - Internationalisation

2003-08-14 Thread message message


Also I was curious about languages ( i.e.Arabic based) which are written 
from right to left.
Can I have a sample file with right to left text
which says the following

welcome.title=Welcome title
welcome.heading=Welcome heading
welcome.message=To get 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 file location - Internationalisation
Date: Wed, 13 Aug 2003 13:21:23 -0400


It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html
I believe Struts will get the correct properties file based on the locale
set for each remote user.
Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties
The first one is the 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-
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/classes/resources directory then all the text will be
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.
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 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: application.properties file location
Date: Wed, 13 Aug 2003 11:51:53 -0400


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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


 Hi,
 
 I have my application.properties file stored in the classes directory.
But
 the application is unable to locate and load this file. Any tips would 
be
of
 great help.
 
 Thanks,
 Samanth Athrey
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret 
des
affaires ; il est etabli a destination exclusive de son destinataire. 
Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle)
de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite 
ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de
la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it 
is
intended solely for the attention of   the addressee . Any disclosure, 
use,
dissemination or reproduction (either whole or  partial) of this message 
or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity
can
not be assured.  AGF declines any  responsibility for  this message in 
the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--


-
To unsubscribe, e-mail

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
In theory if you have a file called application_fr.properties in your
appname/WEB-INF/classes/resources directory then all the text will be 
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

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 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: application.properties file location
Date: Wed, 13 Aug 2003 11:51:53 -0400
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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:
message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.


-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location
Hi,

I have my application.properties file stored in the classes directory. 
But
the application is unable to locate and load this file. Any tips would be
of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) 
de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de 
la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity 
can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 application_fr.properties in
your appname/WEB-INF/classes/resources directory then all the text will
be replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

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  ?

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
Date: Wed, 13 Aug 2003 11:51:53 -0400


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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


 Hi,
 
 I have my application.properties file stored in the classes directory. But
 the application is unable to locate and load this file. Any tips would be
of
 great help.
 
 Thanks,
 Samanth Athrey
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. 
Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, 
use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s

RE: application.properties file location - Internationalisation

2003-08-14 Thread message message
If I get hold of a sample file with Arabic type text, as described below,
then I guess we would be sure of what happens   :(
So many people logged on this line there must be one person !


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
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-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation


Also I was curious about languages ( i.e.Arabic based) which are written
from right to left.
Can I have a sample file with right to left text
which says the following
welcome.title=Welcome title
welcome.heading=Welcome heading
welcome.message=To get 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 file location - Internationalisation
Date: Wed, 13 Aug 2003 13:21:23 -0400



It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html

I believe Struts will get the correct properties file based on the locale
set for each remote user.

Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties

The first one is the 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-
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/classes/resources directory then all the text will be
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

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 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: application.properties file location
 Date: Wed, 13 Aug 2003 11:51:53 -0400
 
 
 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
 aApplicationResources.properties or something.  But since mine in a
 resources directory off of the classes directory I declare mine as:
 
 message-resources parameter=resources.application/
 
 So I am assuming struts takes the last name in the parameter as the 
file
 name and anything before it as directory structure.
 
 
 
 -Message d'origine-
 De : Samanth Athrey [EMAIL PROTECTED]
 À : [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date : mercredi 13 août 2003 16:57
 Objet : application.properties file location
 
 
  Hi,
  
  I have my application.properties file stored in the classes 
directory.
 But
  the application is unable to locate and load this file. Any tips 
would
be
 of
  great help.
  
  Thanks,
  Samanth Athrey
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 --
 Ce message est protege par les regles relatives au secret des
 correspondances ; il peut en outre contenir des informations a 
caractere
 confidentiel ou protegees par differentes regles et notamment le secret
des
 affaires ; il est etabli a destination exclusive de son destinataire.
Toute
 divulgation, utilisation, diffusion ou reproduction (totale ou 
partielle)
 de
 ce message, ou des informations qu'il contient, doit etre prealablement
 autorisee.
 Tout message electronique est susceptible d'alteration et son integrite
ne
 peut etre assuree. Les AGF declinent toute responsabilite au titre de 
ce
 message s'il a ete modifie ou falsifie.
 Si vous n'etes pas destinataire de ce message, merci de le detruire
 immediatement et d'avertir l'expediteur de l'erreur de distribution et 
de
 la
 destruction du message.
 This message is protected by the secrecy

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 file location


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 SERVLET
   =--

   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valueresources.properties.messages/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet

This means I have the messages.properties (which is the same as your 
application.properties with a different name) file in a directory/folder 
called resources in classes.

'Hope this helps.

Micael

At 08:27 PM 8/13/2003 +0530, Samanth Athrey wrote:
Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application.properties file location

2003-08-14 Thread Bailey, Shane C.

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
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be
of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion. 
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
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 commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application.properties file location

2003-08-14 Thread Kommana, Sridhar
1.you can specify application.properties file in struts-config.xml as follows:

  message-resources parameter=ApplicationResources /

2.you can specify application.properties file in web.xml as follows:

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-nameapplication/param-name
param-value/ApplicationResources/param-value
/init-param
  /servlet

just i want 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.  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: 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 commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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...
/action-mappings
message-resources parameter=packageName.ApplicationResources/
/struts-config

Florent

-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be
of
great help.

Thanks,
Samanth Athrey




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ce message est protege par les regles relatives au secret des correspondances ; il 
peut en outre contenir des informations a caractere confidentiel ou protegees par 
differentes regles et notamment le secret des affaires ; il est etabli a destination 
exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou 
reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, 
doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete 
modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et 
d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore it may 
contain privileged or confidential information that is protected by law, notably by 
the secrecy of business relations rule ; it is intended solely for the attention of   
the addressee . Any disclosure, use, dissemination or reproduction (either whole or  
partial) of this message or the information contained herein is strictly prohibited 
without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can not be 
assured.  AGF declines any  responsibility for  this message in the event of  
alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the 
sender of the wrong delivery and the mail deletion. 
--



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't seen the Validator blow up if a message didn't exist
(it just prints blank).  If you use tags that reference messages that don't
exist I think you get an exception thrown on the page.

As far as other languages go, I would say do a find in the Struts directory
for *.properties and see.  I don't have specs to implement
internationalization.

What do you call someone who knows 3 languages?
Trilingual.

What do you call someone who knows 2 languages?
Bilingual.

What do you call someone who knows 1 language?
An American.

:)



-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 1:11 PM
To: Struts-Users
Subject: application.properties question

Hi;

The application.properties file that comes with the blank struts sample has
a bunch of strings already in it. Are these strings needed by struts or are
they just suggested strings for sample errors I might have in my pages?

Also, are these sample files available in languages other than english? And
if so, where do I get them?

thanks - dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]