maven jetty struts异常 There is no Action mapped for namespace [/] and action name [] associated with context path

毕业设计中用maven jetty插件调试时,struts出现这个错误,直接http://localhost:8080 无法进入默认主页,但换tomcat就没问题,最后在这篇文章找到答案
http://www.kankanews.com/ICkengine/archives/45532.shtml
在struts配置中加入

<package name="home" namespace="/" extends="struts-default">

   <default-action-ref name="index" />

       <action name="index" >

       <result name="success">/index.jsp</result>

   </action>

</package>

default-action-ref是关键,估计是jetty必须这样才能通过http://localhost:8080 进入默认主页

原文地址:https://www.cnblogs.com/wchukai/p/4527564.html