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 Gordian Yuan
, 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

Re: How to get request locale in OGNL?

2009-05-21 Thread Gordian Yuan
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

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-15 Thread Gordian Yuan
. This is my carelessness. Thank you Gordian On Sat, Apr 11, 2009 at 7:33 AM, Dave Newton newton.d...@yahoo.com wrote: Gordian Yuan wrote: and i have two properties #en_US properties createCampaign.name=Name createCampaign.submit=Create #zh_CN properties createCampaign.name=名称

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
I forgot to say that I am using Struts 2.1.6 On Thu, Apr 9, 2009 at 6:14 PM, Gordian Yuan gordiany...@gmail.com wrote: Hi all, I encountered the issue of international and I don't know this is a bug or just I miss something or configuration error. The issue is I have a simple page like

It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
Hi all, I encountered the issue of international and I don't know this is a bug or just I miss something or configuration error. The issue is I have a simple page like this s:form action=saveCampaign s:textfield id=name name=name key=createCampaign.name/ s:submit

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
@struts.apache.org Subject: Re: It's a struts2 bug? or just I miss something or configuration error Can you do a view source on the page from your browser and post what the form looks like. gordian yuan wrote: I forgot to say that I am using Struts 2.1.6 On Thu, Apr 9, 2009 at 6:14 PM

How to set an ActionValidatorManager to unittest?

2009-03-12 Thread Gordian Yuan
Hi, All I found this article, How do I unit test my action's validation logic http://cwiki.apache.org/confluence/display/WW/How+do+I+unit+test+my+action%27s+validation+logic, However, in struts2.1.6 have been removed ActionValidatorManagerFactory class My question is how can be obtain an

How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi all, I want to know what is there a way through the ognl tag in struts2 access to the HttpServletRequest getRemoteUser() method I google a lot of about this issue but i can't find any resolvent. Someone know how to do it? Any input will be great ... Thank you Gordian

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi, Lukasz Thank for your reply #request.remoteUser actual is request.getAttribute(remoteUser), not i want request.getRemoteUser() Gordian On Wed, Feb 25, 2009 at 6:38 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/2/25 Gordian Yuan gordiany...@gmail.com: I want to know what

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/2/25 Gordian Yuan gordiany...@gmail.com: #request.remoteUser actual is request.getAttribute(remoteUser), not i want request.getRemoteUser() Yes, you're right try #request.getRemoteUser() Regards -- Lukasz http://www.lenart.org.pl

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi Wes, Thank you for your wonderful answer.These two methods are very good solution to my problem. THANK YOU!!! Gordian On Thu, Feb 26, 2009 at 10:34 AM, Wes Wannemacher w...@wantii.com wrote: On Wednesday 25 February 2009 21:15:09 Gordian Yuan wrote: Hi, Lukasz All I know

Re: Update 2.0.x to 2.1.6

2009-02-22 Thread Gordian Yuan
Hi, Juergen you can just put struts2-dojo-plugin.jar to your WEB-INF/lib if you dont use maven Gordian On Sun, Feb 22, 2009 at 10:11 PM, Martin Gainty mgai...@hotmail.com wrote: Juergen- I would place the plugin details in a profile in your projects pom.xml which will be activated later

How to use struts2 tag to a open a new window?

2009-01-04 Thread Gordian Yuan
Hi all,I has see the document http://struts.apache.org/2.0.14/docs/a.html http://struts.apache.org/2.0.14/docs/a.html and i can't found html tag A target attribute on s:a now i write the code like this a href='s:property value=editJob /' target=_blank modify/a It struts2 has a good way to be able

Re: Struts2 Error.

2008-12-29 Thread Gordian Yuan
http://struts.apache.org/2.x/docs/simple-setup.html Your can just add minium requirement for your application The following files are a minium requirement for your application. FilenameDescriptionstruts2-core.jarFramework library itself, found in distribution root directoryxwork.jarXWork 2

Re: Message properties not displaying

2008-12-29 Thread Gordian Yuan
Hi, Celinio do you declare constant name=struts.ui.theme value=simple / or s:from theme=simple/s:from ? you can simple try s:label key=personBean.firstName theme=xhtml / On Sun, Dec 28, 2008 at 5:44 PM, Celinio Fernandes cel...@yahoo.com wrote: Hi, I am trying to display a label using

Re: html:select problem

2008-12-28 Thread Gordian Yuan
http://www.theserverside.com/discussions/thread.tss?thread_id=35726 or you can search it use google http://www.google.com/search?hl=zh-CNq=select+default+option+strutsbtnG=Google+搜索lr=http://www.google.com/search?hl=zh-CNq=select+default+option+strutsbtnG=Google+%E6%90%9C%E7%B4%A2lr= On Sat,

Re: How do I submit Simplified Chinese text to my Action Class?

2008-12-27 Thread Gordian Yuan
Do you have add a CharacterEncodingFilter in web.xml ? for example filter filter-nameencodingFilter/filter-name filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class init-param param-nameencoding/param-name param-valueUTF-8/param-value /init-param init-param