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)
>
>
>> (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.
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
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
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
---
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
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
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
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
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
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:
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
12 matches
Mail list logo