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 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 , output is zh_CN >

Re: How to get request locale in OGNL?

2009-05-21 Thread Gordian Yuan
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, wrote: > invocation.getStack().findString(#attr.

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 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: It's a struts2 bug? or just I miss something or configuration error

2009-04-15 Thread Gordian Yuan
with this command,everyhing is fine. This is my carelessness. Thank you Gordian On Sat, Apr 11, 2009 at 7:33 AM, Dave Newton wrote: > Gordian Yuan wrote: > >> and i have two properties >> >> #en_US properties >> createCampaign.name=Name >> createCampa

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

2009-04-09 Thread Gordian Yuan
t obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > > Date: Thu, 9 Apr 2009 12:16:30 -0700 > > From: glindh...@yahoo.com > > To:

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

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 and i have two properties #en_US properties createCampaign.name=Name createCampaign.submit=Create #zh_CN prop

Re: Error encounter when using tiles on JSP

2009-03-22 Thread Gordian Yuan
Hi, newbie-gero I remember that it should be using the name attribute example : try it Gordian On Sun, Mar 22, 2009 at 9:09 PM, newbie-gero wrote: > > Greetings, > i tried to use tiles and tld files on a jsp page,but i encounter an error > while trying to load the jsp file. > > These are t

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 , However, in struts2.1.6 have been removed ActionValidatorManagerFactory class My question is how can be obtain an Action

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 wrote: > On Wednesday 25 February 2009 21:15:09 Gordian Yuan wrote: > > Hi, Lukasz > > > > All I k

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 : > > #request.remoteUser actual is request.getAttribute("remoteUser"), not i > want > > request.getRemoteUser() > > Yes, you're right try #request.getRemoteUser() > >

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 wrote: > 2009/2/25 Gordian Yuan : > > I want to know what is there a way through the

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: 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 wrote: > > Juergen- > > I would place the plugin details in a profile in your projects pom.xml > which will be activated later on > >

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 and i can't found html tag A target attribute on s:a now i write the code like this modify It struts2 has a good way to be able to use s:a to open a new window ? Thanks!

Re: Message properties not displaying

2008-12-29 Thread Gordian Yuan
Hi, Celinio do you declare or ? you can simple try On Sun, Dec 28, 2008 at 5:44 PM, Celinio Fernandes wrote: > Hi, > I am trying to display a label using messages in a property file > src/global-messages.properties : > personBean.firstName=Your first name > > (The default locale i am usin

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 library

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-CN&q=select+default+option+struts&btnG=Google+搜索&lr=

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 encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true encodingFilter /* On Sun, Dec 28, 2008 at 10:54 AM, jmlynn wrote: > > Hi, I am new to handling Simplified Chinese t