There is no Action mapped for namespace / and action name"的错误
来源:互联网 发布:软件出口退税政策 编辑:程序博客网 时间:2024/05/16 17:09
提示"There is no Action mapped for namespace / and action name"的错误。上网查询后发现这是一个初学者经常碰到的问题,导致错误的原因主要有两种。总结如下:
一、struts.xml文件错误。这种错误又分为以下几种:
1,struts.xml文件名错误。一定要注意拼写问题;
2,struts.xml文件放置路径错误。一定要将此文件放置在src目录下。编译成功后,要确认是否编译到classes目录中;
3,struts.xml文件内容错误。下面给出一个正确的struts.xml文件以供参考。注意背景色部分。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="login" class="com.wanggc.struts2.sample.Struts2Action">
<result name="success">/jsp/result.jsp</result>
</action>
</package>
</struts>
二、如果排除了struts.xml文件的问题,还有一种可能就是,在web.xml文件中的<welcome-file>信息中是否配置了自己工程的启动页面。如果没有配置,地址栏中要输入完成的url,如:http://localhost:8080/Struts2Sample/jsp/login.jsp,后面的资源详细信息不输入的时候也会报这个错误,我就是栽在这个问题上的(^_^)。
作者:孤旅者
出处:http://www.cnblogs.com/gulvzhe/
阅读全文
0 0
- There is no Action mapped for namespace /admin and action name 的一种可能错误
- There is no Action mapped for namespace / and action name"的错误
- struts2种出现的There is no Action mapped for namespace [/] and action name 错误
- struts2提示“There is no Action mapped for namespace [/] and action name [XXX]... ”错误的解决办法
- Struts2中关于"There is no Action mapped for namespace / and action name"的错误解决
- There is no Action mapped for namespace / and action name"的错误
- There is no Action mapped for namespace / and action name .
- There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace [/] and action name
- There is no Action mapped for namespace / and action name .
- There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace [/] and action name
- 彻底解决STRUTS2 错误There is no Action mapped for namespace / and action name login
- There is no Action mapped for namespace / and action name错误
- 解决STRUTS2 错误 There is no Action mapped for namespace / and action name
- 删除一张表中的重复行和左外连接右外连接
- playbook语言结构
- OTT TV系统你最关心的几个问题都在这
- 数据单位复查
- 【传智播客郑州校区分享】最详细的微信小程序讲解
- There is no Action mapped for namespace / and action name"的错误
- SVD在稀疏表示中的应用
- java.lang.IllegalArgumentException: Control character in cookie value or attribute
- sql server数据库连接问题处理
- 判断新增行是否允许修改
- 以太坊学习之Java开发框架web3j的使用---部署合约
- <队内胡策>2017.10.18 (DP+tarjan、SPFA+字符串+脑洞、数学)
- 搭建一个微服务框架所需要哪些技术(spring-cloud)
- C# 理解lock