struts2里面<package name="user-package" extends="json-default" namespace="/">
<action name="userList" class="userAction" method="getAllUser">
<result> /userList.jsp</result>
</action>
</package>
<package name="admin-package" extends="json-default" namespace="/">
<action name="userList" class="userListAction" method="getUser">
<result> /log.jsp</result>
</action>
</package>
假如我前台发送一次请求名字都叫userList,struts怎么区分它们
------解决方案--------------------
<package name="user-package" extends="json-default" namespace="/user">
<package name="admin-package" extends="json-default" namespace="/admin">跟java中包一样