码迷,mamicode.com
首页 > 移动开发 > 详细

There is no Action mapped for namespace / and action name login. - [unknown location]

时间:2017-12-14 04:02:35      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:list   location   struts   问题   cat   div   bsp   cti   root   

(自己在浏览器中,直接进入项目的根目录,即 http://localhost:8080/ssh/  时便报错,web.xml文件已经配置了 欢迎页面

1  <welcome-file-list>
2     <welcome-file>index.jsp</welcome-file>
3   </welcome-file-list>

并且 filter-mapping设置为 所有的url

1 <filter-mapping>
2       <filter-name>struts2</filter-name>
3       <url-pattern>/*</url-pattern>
4   </filter-mapping>

 

其实问题是,自己无意中,将 index.jsp 文件 拖到了别的路径(应该在WebRoot 的根目录下)

网上有的人,将struts.xml 文件名 拼写错,也报该错误。

There is no Action mapped for namespace / and action name login. - [unknown location]

标签:list   location   struts   问题   cat   div   bsp   cti   root   

原文地址:http://www.cnblogs.com/listened/p/8035271.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!