RE: getText did not return value in s:submit

2009-02-18 Thread Martin Gainty
se content contained within this transmission. > Date: Thu, 5 Feb 2009 12:29:46 -0500 > From: em...@encs.concordia.ca > To: user@struts.apache.org; newton.d...@yahoo.com > Subject: Re: getText did not return value in s:submit > > Hi Dave, > > >> (3)

Re: getText did not return value in s:submit

2009-02-08 Thread Steven Yang
> > >> (2) Put package.properties under /WEB-INF/classes/ >> >> > have you tried to put package.properties under the same package as your action class?AFAIK package.properties only works with classes in the same package or classes sub-classing the classes in the package.

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Finally, in JSP(not through action) success by doing the following: (1) Create "struts.properties" under WEB-INF/classes/ struts.custom.i18n.resources=globalMessages (2) Create globalMessages_en_US.properties label.test= test label value (3) in JSP, -- Lu Ying Emi Lu wrote: htt

Re: getText did not return value in s:submit

2009-02-05 Thread Dave Newton
Emi Lu wrote: http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Did not success. (1) in package.properties label.code=example value (2) Put package.properties under /WEB-INF/classes/ (3) in jsp Still cannot see the result? Again: are you accessing the JSP through an action? Dave

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Did not success. (1) in package.properties label.code=example value (2) Put package.properties under /WEB-INF/classes/ (3) in jsp Still cannot see the result? -- Lu Ying ---

Re: getText did not return value in s:submit

2009-02-05 Thread Felipe Fraga
Pretty straight forward tutorial: http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Best regards, Felipe Fraga On Thu, Feb 5, 2009 at 5:29 PM, Emi Lu wrote: > Hi Dave, > >>> (3) but I do not know how jsp can recognize "package.properties"? >> >> You're mis-understanding how the text is retrieve

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Hi Dave, (3) but I do not know how jsp can recognize "package.properties"? You're mis-understanding how the text is retrieved from the JSP: the JSP is calling the action's getText(...) method. Are you accessing the JSP directly, or through an action? I am new to struts2. I tried to use ge

Re: getText did not return value in s:submit

2009-02-05 Thread Dave Newton
Emi Lu wrote: I got why: I have to name the same property file name as the action class. Rename "package.properties" to ProcessInfo.properties, I got correct result. I just wonder isn't "package.properties" is recognized automatically? May I know how to use "package.properties" to display g

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
I got why: I have to name the same property file name as the action class. Rename "package.properties" to ProcessInfo.properties, I got correct result. I just wonder isn't "package.properties" is recognized automatically? May I know how to use "package.properties" to display getText() in jsp

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Good morning, I got why: I have to name the same property file name as the action class. Rename "package.properties" to ProcessInfo.properties, I got correct result. I just wonder isn't "package.properties" is recognized automatically? May I know how to use "package.properties" to display ge

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Hi Martin, Take a look at this example what is displayed when property is displayed in jsp? I got the same value displayed "edit.action" :( Do you know where I did wrong please? Thanks a lot! -- Lu Ying Date: Wed, 4 Feb 2009 16:50:43 -0500 From: em...@encs.concordia.ca To:

RE: getText did not return value in s:submit

2009-02-04 Thread Martin Gainty
Take a look at this example what is displayed when property is displayed in jsp? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a co