can't set action error text from global resource file
-----------------------------------------------------

                 Key: WW-2199
                 URL: https://issues.apache.org/struts/browse/WW-2199
             Project: Struts 2
          Issue Type: Bug
          Components: Actions
    Affects Versions: 2.0.9
         Environment: windows, websphere 6.0, java 1.4. - struts 2.0.9 J4 
distribution + spring
            Reporter: johana pin 


How can I use a global resource properties file (defined in struts..xml as:
<constant name="struts.custom.i18n.resources" value="ApplicationResources"/>
) for setting an action error text in an action class having an error key ?

I tried in action class: addActionError(getText("error.business.norights")), 
but the problem is that the text is not found and the key is returned.

When I use only in jsp: <s:text name="error.business.norights" /> 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: 'error.business.norights'.

Is this a bug or is there a way to do this ?

Thank you,


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to