我使用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.这个错误请问哪位能告诉我这是什么原因啊

解决方案 »

  1.   

    1、 保证DMI的配置项是打开的,Struts2.1.6默认是打开的;
    2、 确保 Action 中的 add 方法返回的页面存在,流程正确
    3、 既然已经进确认了 namespace 那么确认你的配置文件配置了此 Action,如果你压根就没配置
        此Action那么.....
    4、 并不推荐使用DMI与Struts2标签支持的同一表单多用途提交,因为暴露了Action中的方法名
    5、 希望给出更多的信息。
      

  2.   

     谢谢 一般的调用Action中的方法是采用哪种方式呢?
      

  3.   

    动态调用方法:1.必须设置属性:struts.enable.DynamicMethodInvocation = true2.使用形式:如下:
    <s:form name="first!add.action" namespace="/actions">
      <s:submit value="submit"/>
    </s:form>