struts2的一个奇怪问题
<package name="struts" namespace="/res" extends="json-default">
<action name="upload" method="uploadResource">
<result type="redirect" name="getres">/res/getres</result>
<result name="nosess">../index.jsp</result>
</action>
<package>
其中的name为upload是,通过URL /res/upload无法访问到
<package name="struts" namespace="/res" extends="json-default">
<action name="upload1" method="uploadResource">
<result type="redirect" name="getres">/res/getres</result>
<result name="nosess">../index.jsp</result>
</action>
<package>
把name改为upload1可以正常访问到
其中Tomcat报无法访问到的404错误,暂时不知道原因是啥
There is no Action mapped for namespace /res/upload and action name .
The requested resource (There is no Action mapped for namespace /res/upload and action name .) is not available.