javaweb报错There is no Action mapped for namespace [/] and action name [Login] context path [/struts]
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]相关推荐
- There is no Action mapped for namespace [/] and action name [LoginAction_home] associ
使用struts2框架产生的问题: index.jsp: <%@ page language="java" contentType="text/html; char ...
- There is no Action mapped for namespace / and action name .
建立一个struts2+hibernate+spring的demo,结果发现输入:http://localhost:端口号/项目名称/ 后,页面报:HTTP Status 404 - There is ...
- 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 ...
- 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 ...
- 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 ...
- Struts2中关于There is no Action mapped for namespace / and action name的错误解决
今天在调试一个十分基础的Struts2框架小程序时.总是提示"There is no Action mapped for namespace / and action name"的 ...
- 关于报错There is no Action mapped for namespace [/] and action name 。。。(两个package的name重复 T_T)
在使用struts.xml的<include file="***.xml"></include>时,配置了两个xml文件,一直报错,查了网上不少方法,htt ...
- 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 ...
- There is no Action mapped for namespace [/] and action name [Demo12Action] associated with context p
今天遇到了一个丧性病狂的异常,在丧心病狂的查找下,找到了问题所在.异常如下 按照下面的提示,我去改变了常量的值,改变如下(如果你不会常量配置可以去看这篇博客) https://blog.csdn.ne ...
最新文章
- 完整java开发中JDBC连接数据库代码和步骤
- css实现图片自适应容器的几种方式
- idea persistence生成_真厉害!竟然可以这样用IDEA通过数据库生成lombok版的POJO...
- 项目经理常见的沟通坏习惯
- 烹调方案(洛谷-P1417)
- linux 强行安装软件,Linux下强制不检测依赖安装VNC
- java学习4-Maven的发布war并部署到tomcat
- WDF框架下 硬盘的虚拟
- 视易linux进图形界面,视易KTV点歌机系统安装说明.ppt
- 计算机一级学ug么,怎样才能学好UG从事电脑编程工作呢?进来看看必有收获!...
- 利用遗传算法解决TSP问题
- win10计算机变成了英文,win10变成英文【处理方式】
- excel使用mysql数据库查询语句_如何通过Excel查询MySQL数据库
- 小游戏1024纯C语言
- EXCEL中行列转换
- 在Jetty中快速搭建SSL
- 启动springboot报错:程序包org.springframework.boot不存在
- 神奇的 toLocaleString
- 如何查看当前分支从哪个支线创建而来
- 直流马达驱动_PWM加减速(STM32F4 CubeMX)