struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-945) Global Results conflict
Date Fri, 09 Jun 2006 06:11:16 GMT
     [ http://issues.apache.org/struts/browse/WW-945?page=all ]
     
Don Brown resolved WW-945:
--------------------------

    Resolution: Fixed

Marking as fixed since Toby indicates it has been fixed.  Please reopen if it isn't the case.

> Global Results conflict
> -----------------------
>
>          Key: WW-945
>          URL: http://issues.apache.org/struts/browse/WW-945
>      Project: Struts Action 2
>         Type: Bug

>   Components: Configuration
>     Versions: WW 2.2
>     Reporter: Onyeje Bose
>      Fix For: 2.0
>  Attachments: XmlConfigurationProviderGlobalResultInheritenceTestPatch.txt, xwork-test-global-result-inheritence-xml-patch.txt
>
> I have the elements below defined in my xwork.xml. When I execute /base/packageA.action,
I get the global-results defined in packageB. I thought my global results would come from
the current package.
> <package name="packageA" namespace="/base" extends="default">
> <global-results>
> <result name="success">good_resultA.jsp</result>
> <result name="input">input_resultA.jsp</result>
> <result name="error">error_resultA.jsp</result>
> </global-results>
> <action class="SomeActionA" name="someActionA"/>
> </package>
> <package name="packageB" namespace="/base" extends="packageA">
> <global-results>
> <result name="success">good_resultB.jsp</result>
> <result name="input">input_resultB.jsp</result>
> <result name="error">error_resultB.jsp</result>
> </global-results>
> <action class="SomeActionB" name="someActionB"/>
> </package>
> To confirm, I made packageB extend default instead of packageA, and packageA's global-results
were returned instead of packageB.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message