Re: struts2 locale question

2009-06-03 Thread Dave Newton
Bhaarat Sharma wrote: I am doing this but not working imi.welcome = Hello {0} Unless you have a property named "World", it won't. You probably mean to send an immediate string, the OGNL for which is %{'World'}. Dave - To

Re: struts2 locale question

2009-06-03 Thread Bhaarat Sharma
I am doing this but not working imi.welcome = Hello {0} On Wed, Jun 3, 2009 at 7:16 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> is there a way in struts2 to create a locale in the properties file and >> then >> substitue values to it? >> For example: >> in properties file: >> myApp.Wel

Re: struts2 locale question

2009-06-03 Thread Dave Newton
Bhaarat Sharma wrote: is there a way in struts2 to create a locale in the properties file and then substitue values to it? For example: in properties file: myApp.Welcome = "Hello ?" then when we call this locale we can pass in some value for '?' This would print: Hello World Hello John Yo

struts2 locale question

2009-06-03 Thread Bhaarat Sharma
is there a way in struts2 to create a locale in the properties file and then substitue values to it? For example: in properties file: myApp.Welcome = "Hello ?" then when we call this locale we can pass in some value for '?' This would print: Hello World Hello John Thanks -bhaarat

RE: Re[2]: Locale question

2005-03-22 Thread Kalra, Ashwani
TECTED] > Sent: Tuesday, March 22, 2005 7:04 PM > To: Struts Users Mailing List > Subject: Re[2]: Locale question > > > Erik! > Where can I find some docs and samples about Globals obj ? > > EW> Yes, it's gone in 1.2.4 and replaced by Globals.LOCALE_KEY. > > EW

Re: Locale question

2005-03-22 Thread Erik Weber
Well, one place to look would be the API documentation: http://struts.apache.org/api/index.html Click on "Globals" in the "All Classes" frame and check out the Field Summary. Also, click on one of the key fields and you'll see a link to "Constant Field Values". Follow that for a summary page conc

Re[2]: Locale question

2005-03-22 Thread Sergey Livanov
Erik! Where can I find some docs and samples about Globals obj ? EW> Yes, it's gone in 1.2.4 and replaced by Globals.LOCALE_KEY. EW> Erik EW> Sergey Livanov wrote: >>Is Action.LOCALE_KEY deprecated ? >> >> >> EW> - EW> To u

Re: Locale question

2005-03-22 Thread Erik Weber
Yes, it's gone in 1.2.4 and replaced by Globals.LOCALE_KEY. Erik Sergey Livanov wrote: Is Action.LOCALE_KEY deprecated ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Locale question

2005-03-22 Thread Sergey Livanov
Is Action.LOCALE_KEY deprecated ? -- regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: basic locale question

2004-09-11 Thread Bill Siggelkow
If you don't specify anything than you will be using the locale set in your browser (if you don't set this than its usually the locale set in your O/S). This behavior usually works good for most apps. If you want to allow a person to proactively change the Locale you can do it in an Action. Tak

basic locale question

2004-09-11 Thread Leandro Melo
Hi, this is very very basic. When i started learning Java i really never payed attention to that. I don't have any one line of code in my struts application that secifies my "locale". So, what's actually the default locale i'm using??? if i want to change the locale, how exactly should i do?? w