您的位置:首页 > 移动开发

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

2015-05-25 12:30 671 查看
毕业设计中用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 进入默认主页
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐