struts action路劲装配

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>

扫描二维码关注公众号,回复: 1089876 查看本文章

http://127.0.0.1:8080/hb_telesale/itm/callin/queryOrder.action

2,全路径-----可以允许命名空间不同action名字相同

猜你喜欢

转载自yuhuiblog6338999322098842.iteye.com/blog/2389733