HTTP Status 404 - There is no Action mapped for namespace [/] and action name [dwr] associated with context path 

解决方案 »

  1.   

    原因:因为struts2拦截器配置/*  所以当输入XXX/dwr时会被struts2捕获  认为是某个action  所以就出现上面错误
    修改:将/*配置成 *.action 或*.do
      

  2.   

    楼主 你的做法 不可行,因为 web.xml 的核心控制器配置成 *.action  之后就只能拦截action了,殊不知 /*还有其他用处,比如 拦截验证框架,等等,一时记不起来了。建议楼主修改如下: 我自己测试的正则表达式 :
    <constant name="struts.action.excludePattern" value="/dwr.*"></constant>不行,你砍我~~