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



application.properties file location

2003-08-14 Thread Samanth Athrey
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]