Maybe I am reading your question wrong, but I can't see why you would
want to do that... Struts2 will have to pick one or the other. Perhaps
maybe you are looking for the "namespace" attribute? 

http://struts.apache.org/2.x/docs/namespace-configuration.html

-Wes

--
Discussion of Struts2, Spring, & Hibernate - http://www.wantii.com 

-----Original Message-----
From: AntonyJB [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 09, 2007 5:17 AM
To: user@struts.apache.org
Subject: Action names unique across packages? Why?


OK. Maybe I'm expecting too much or haven't come across the right Struts
property but...
In the following snippet, I'm not expecting the 1st 'list' action to be
overridden by the 2nd. But that's what is happening.

    <package name="A/BBBB" extends="tiles-default">
        <action name="list" class="myAction">
            <result type="tiles" name="success">detail.layout</result>
        </action>
    </package>

    <package name="A/CCCC" extends="tiles-default">
        <action name="list" class="myAction">
            <result type="tiles" name="success">detail.layout</result>
        </action>
    </package>


I'm off to venture in Struts core code to see if these actions are
stored in a shared hash, and not package-bound.

If you can confirm this is expected behaviour though, that's be great :)
Thanks, Ant

--
View this message in context:
http://www.nabble.com/Action-names-unique-across-packages--Why--tf404810
3.html#a11498441
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to