How to get request locale in OGNL?

2009-05-21 Thread Gordian Yuan
Hi, I want to know how to get request locale in OGNL? For now I use s:set var=locale value='#session.WW_TRANS_I18N_LOCALE?#session.WW_TRANS_I18N_LOCALE.toString():zh_CN'/ This must assume that the initial value is zh_CN. So I need to know how to get request locale in OGNL. Thx Gordian Yuan

Re: How to get request locale in OGNL?

2009-05-21 Thread stanlick
invocation.getStack().findString(#attr.locale) On Thu, May 21, 2009 at 6:22 AM, Gordian Yuan gordiany...@gmail.com wrote: Hi, I want to know how to get request locale in OGNL? For now I use s:set var=locale value='#session.WW_TRANS_I18N_LOCALE?#session.WW_TRANS_I18N_LOCALE.toString

Re: How to get request locale in OGNL?

2009-05-21 Thread Gordian Yuan
...@gmail.com wrote: invocation.getStack().findString(#attr.locale) On Thu, May 21, 2009 at 6:22 AM, Gordian Yuan gordiany...@gmail.com wrote: Hi, I want to know how to get request locale in OGNL? For now I use s:set var=locale value='#session.WW_TRANS_I18N_LOCALE

Re: How to get request locale in OGNL?

2009-05-21 Thread Gordian Yuan
to know how to get request locale in OGNL? For now I use s:set var=locale value='#session.WW_TRANS_I18N_LOCALE?#session.WW_TRANS_I18N_LOCALE.toString():zh_CN'/ This must assume that the initial value is zh_CN. So I need to know how to get request locale in OGNL. Thx Gordian Yuan