javaweb报错
There is no Action mapped for namespace [/] and action name [Login] associated with context path [/struts]

部分原因如下:
1,确保struts.xml文件名大小写正确:struts.xml。

2,确保struts.xml文件在src目录下(重要)。

3,确保struts.xml action配置中路径是对的(重要)。

4, 可以去掉namespace="目录"试试,namespace是action的目录,如果action指定目录的话,就在指定namespace下找,没有的话,就在默认的路径下找。

5,检查所有xml配置文件中有没有配置,配置文件中配置启动页面,只能唯一确定(配置一次),且必须配置。

6,偶尔存在这种现象:操作正确,但是不能有正确结果的时候,就是重启服务器的时候。

附上两张配置图片:


另外:struts2配置的头几行:

javaweb报错There is no Action mapped for namespace [/] and action name [Login] context path [/struts]相关推荐

  1. There is no Action mapped for namespace [/] and action name [LoginAction_home] associ

    使用struts2框架产生的问题: index.jsp: <%@ page language="java" contentType="text/html; char ...

  2. There is no Action mapped for namespace / and action name .

    建立一个struts2+hibernate+spring的demo,结果发现输入:http://localhost:端口号/项目名称/ 后,页面报:HTTP Status 404 - There is ...

  3. 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.这是一个很常见的s ...

  4. There is no Action mapped for namespace [/] and action name [test] associated with context path [...

    There is no Action mapped for namespace [/] and action name [test] associated with context path [/s2 ...

  5. There is no Action mapped for namespace [/] and action name [] associated with context path [/dxm__s

    2015-4-3 10:23:19 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error 严重: Exception occ ...

  6. Struts2中关于There is no Action mapped for namespace / and action name的错误解决

    今天在调试一个十分基础的Struts2框架小程序时.总是提示"There is no Action mapped for namespace / and action name"的 ...

  7. 关于报错There is no Action mapped for namespace [/] and action name 。。。(两个package的name重复 T_T)

    在使用struts.xml的<include file="***.xml"></include>时,配置了两个xml文件,一直报错,查了网上不少方法,htt ...

  8. message There is no Action mapped for namespace [/] and action name [login] associated with context

    搭建struts工程出现以上问题: 1.排查关键字,xml中是不是有关键字写错 如struts2,default等 2.action 表单  一般要写成 xxxx.action  如:login.ac ...

  9. There is no Action mapped for namespace [/] and action name [Demo12Action] associated with context p

    今天遇到了一个丧性病狂的异常,在丧心病狂的查找下,找到了问题所在.异常如下 按照下面的提示,我去改变了常量的值,改变如下(如果你不会常量配置可以去看这篇博客) https://blog.csdn.ne ...

最新文章

  1. 完整java开发中JDBC连接数据库代码和步骤
  2. css实现图片自适应容器的几种方式
  3. idea persistence生成_真厉害!竟然可以这样用IDEA通过数据库生成lombok版的POJO...
  4. 项目经理常见的沟通坏习惯
  5. 烹调方案(洛谷-P1417)
  6. linux 强行安装软件,Linux下强制不检测依赖安装VNC
  7. java学习4-Maven的发布war并部署到tomcat
  8. WDF框架下 硬盘的虚拟
  9. 视易linux进图形界面,视易KTV点歌机系统安装说明.ppt
  10. 计算机一级学ug么,怎样才能学好UG从事电脑编程工作呢?进来看看必有收获!...
  11. 利用遗传算法解决TSP问题
  12. win10计算机变成了英文,win10变成英文【处理方式】
  13. excel使用mysql数据库查询语句_如何通过Excel查询MySQL数据库
  14. 小游戏1024纯C语言
  15. EXCEL中行列转换
  16. 在Jetty中快速搭建SSL
  17. 启动springboot报错:程序包org.springframework.boot不存在
  18. 神奇的 toLocaleString
  19. 如何查看当前分支从哪个支线创建而来
  20. 直流马达驱动_PWM加减速(STM32F4 CubeMX)

热门文章

  1. buaaoo_fourth_assignment
  2. myeclipse怎么集成Tomcat
  3. 跟燕十八学习PHP-第十五天-php增删改查表数据
  4. C# Winform验证码
  5. 一次公司内部的Tech Talk中涉及到的关于语言的发展问题
  6. Web服务器漏洞和安全
  7. Access数据库注入
  8. [课程复习] 数据结构之线性表、树、图、查找、排序经典算法复习
  9. [python] 基于k-means和tfidf的文本聚类代码简单实现
  10. App设计灵感之十二组精美的插画引导页设计案例