我使用http://127.0.0.1:8080/Struts3/actions/first!add链接去调用Action中的add方法总是报
HTTP Status 404 - There is no Action mapped for namespace /actions and action name first!add.这个错误请问哪位能告诉我这是什么原因啊
HTTP Status 404 - There is no Action mapped for namespace /actions and action name first!add.这个错误请问哪位能告诉我这是什么原因啊
2、 确保 Action 中的 add 方法返回的页面存在,流程正确
3、 既然已经进确认了 namespace 那么确认你的配置文件配置了此 Action,如果你压根就没配置
此Action那么.....
4、 并不推荐使用DMI与Struts2标签支持的同一表单多用途提交,因为暴露了Action中的方法名
5、 希望给出更多的信息。
<s:form name="first!add.action" namespace="/actions">
<s:submit value="submit"/>
</s:form>