[ 
https://issues.apache.org/jira/browse/WW-5002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16743125#comment-16743125
 ] 

k918912 commented on WW-5002:
-----------------------------

That doesn't seem to work for global-results without redirectAction defined.

This works:
{code}<default-class-ref class="com.company.app.EmptyAction" />

<global-results>
  <result name="test" type="redirectAction">test</result>
</global-results>

<action name="test">
  <result>/WEB-INF/jsp/test.jsp</result>
</action>{code}
This doesn't:
{code}<default-class-ref class="com.company.app.EmptyAction" />

<global-results>
  <result name="test">/WEB-INF/jsp/test.jsp</result>
</global-results>{code}

> Package Level Properties in Global Results
> ------------------------------------------
>
>                 Key: WW-5002
>                 URL: https://issues.apache.org/jira/browse/WW-5002
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.18
>            Reporter: k918912
>            Priority: Major
>             Fix For: 2.6
>
>
> I'm currently trying to use a global result within an interceptor but have 
> problems accessing package level properties.
> So my structure is:
> struts-test.xml
> -> contains a global-result "test"
> com.example.test
> -> contains package.properties
> com.example.test.interceptor
> -> containts TestInteceptor.java with the result "test"
> The test result is a jsp-File with s:text tags. Sadly the s:text tags are 
> ignoring the package level properties file and are only looking at global 
> properties.
> {quote}Missing key [test.xyz] in bundles [[global-messages, 
> org/apache/struts2/struts-messages, 
> com/opensymphony/xwork2/xwork-messages]]!{quote}
> Is there anything wrong in my configuration? I checked the docs and didn't 
> find anything related to this problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to