Struts2 包命名空间继承

Struts2 package namespace inheriting

<package name="A" extends="default" namespace="/A">
    ...
</package>
<package name="B" extends="A" namespace="/B">
    <action name="show" class="...">
        ...
    </action>
</package>

在上面的设置中,我想知道为什么命名空间没有在包 B 中继承,以便我可以调用操作 show使用命名空间 /A/B/show.

因为事情不是这样的;没有别的原因。

这在 the docs 中讨论:

Namespace are not hierarchical like a file system path. There is one namespace level.