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,
<s:label value="%{getText('label.test')}" />
--
Lu Ying
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
<s:label value="label.code" />
Still cannot see the result?
Again: are you accessing the JSP through an action?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org