typo..I try to use #request.locale now .. On Thu, May 21, 2009 at 7:51 PM, Gordian Yuan <gordiany...@gmail.com> wrote:
> Thank you for your rapid response > > I try to use #context.locale now. It's look fine.But I'm not sure > > When i write <s:property value="#request.locale"/> , output is zh_CN > > But i write <s:property value="#request"/> , output is > > {__sitemesh__filterapplied=true, > __spring_security_filterSecurityInterceptor_filterApplied=true, > __spring_security_session_fixation_filter_applied=true, > __spring_security_session_integration_filter_applied=true, > __cleanup_recursion_counter=1, struts.request_uri=/agencyx/signin.action, > javax.servlet.forward.servlet_path=/signin.action, > struts.view_uri=/jsp/signin.jsp, lazyLoadingFilter.FILTERED=true, > struts.valuestack=com.opensymphony.xwork2.ognl.ognlvaluest...@443799, > javax.servlet.forward.request_uri=/agencyx/signin.action, > javax.servlet.forward.context_path=/agencyx} > > I can't find where is locale property ... > > Gordian Yuan > > On Thu, May 21, 2009 at 7:27 PM, <stanl...@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?#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 >> > >> > >