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配置中加入
default-action-ref是关键,估计是jetty必须这样才能通过http://localhost:8080 进入默认主页
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 进入默认主页
相关文章推荐
- There is no Action mapped for namespace [/] and action name [] associated with context path [/struts
- There is no Action mapped for namespace [/] and action name [] associated with context path [/dxm__s
- There is no Action mapped for namespace [/] and action name [] associated with context path [/struts2web1].
- There is no Action mapped for namespace[/] and action name [] associated with context path.
- There is no Action mapped for namespace [/] and action name [hello] associated with context path [/
- There is no Action mapped for namespace [/] and action name [hello] associated with context path [/d
- There is no Action mapped for namespace [/] and action name [login] associated with context path [/p
- There is no Action mapped for namespace [/] and action name [Person] associated with context path
- There is no Action mapped for namespace [/] and action name [user] associated with context path
- There is no Action mapped for namespace [/] and action name [] associated with context path。。。
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e
- There is no Action mapped for namespace [/] and action name [student ! welcome] associated with context path [/web_test_11]. - [unknown location]
- There is no Action mapped for namespace [/] and action name [] associated with context path [/test1]
- There is no Action mapped for namespace[/] and action name [] associated with context path.
- There is no Action mapped for namespace [/] and action name [accoutLogin] associated with context path [/cloudclick].Struts2错误
- There is no Action mapped for namespace[/] and action name [] associated with context path.问题解决
- There is no Action mapped for namespace [] and action name [] associated with context path []
- 一个struts傻瓜式的问题There is no Action mapped for namespace [/] and action name [] associated with context
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e