struts action路劲装配
程序员文章站
2022-07-12 16:14:43
...
1,action名字-----action名字(不同命名空间中)不一样,直接写action name会直接加上命名空间请求
<package name="cust" extends="struts-default" namespace="/itm/cust">
<package name="callin" extends="struts-default" namespace="/itm/callin">
<action name="queryOrder" class="com.itm.callin.web.OrderAction" method="queryOrder">
<result type="dispatcher" name="success">
/flex/callinorder/queryOrder.jsp
</result>
</action>
http://127.0.0.1:8080/hb_telesale/itm/callin/queryOrder.action
2,全路径-----可以允许命名空间不同action名字相同
推荐阅读