[
https://issues.apache.org/struts/browse/WW-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
S.Anbuvel updated WW-2514:
--------------------------
Description:
In action class i used : addActionMessage(getText("msg.common.recordUpdated")).
The action message displayed in the jsp is "msg.common.recordUpdated" not the
value of this key.
I need this for multi lingual.
How to do the multi lingual in actionMessage?
was:
How can I use a global resource properties file
for setting an action message text in an action class having an message key ?
I tried in action class: addActionMessage(getText("msg.common.recordUpdated")),
but the problem is that the text is not found and the key is returned.
When I use only in jsp: <s:text name="msg.common.recordUpdated" /> the text is
found - the output is ok.
When I use in the action the call: 'getText("error.business.norights")' the key
is returned and after that in jsp the s: text tag does not output the value of
the key anymore. The output is the key: msg.common.recordUpdated.
Is this a bug or is there a way to do this ?
Environment: struts 2.0, spring, hibernate.
Summary: how to do the multi lingual in actionMessage (was: Action
Messaging for i18n)
> how to do the multi lingual in actionMessage
> --------------------------------------------
>
> Key: WW-2514
> URL: https://issues.apache.org/struts/browse/WW-2514
> Project: Struts 2
> Issue Type: Bug
> Environment: struts 2.0, spring, hibernate.
> Reporter: S.Anbuvel
>
> In action class i used :
> addActionMessage(getText("msg.common.recordUpdated")).
> The action message displayed in the jsp is "msg.common.recordUpdated" not
> the value of this key.
> I need this for multi lingual.
> How to do the multi lingual in actionMessage?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.