IT忍者神龟之有关struts.xml中用到chain和redirectAction编译报错Undefined actionnamespace parameter

<package name="helloworld" extends="struts-default" namespace="/">

<action name="hellowrold" class="action.HelloWorld1Action" >

<result name="toSecond" type="chain">

<param name="actionName">secondAction</param>

<param
name="namespace">/</param>

</result>

两个加阴影的地方都必须存在的,否则就报错

时间: 2024-07-29 01:50:08

IT忍者神龟之有关struts.xml中用到chain和redirectAction编译报错Undefined actionnamespace parameter的相关文章

org.eclipse.wst.common.project.facet.core.xml文件模板,解决eclipse编译报错。

<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="wst.jsdt.web"/> <fixed facet="jst.web"/> <fixed facet="java"/> <installed facet="jst.web" v

IDEA中写MyBatis的xml配置文件编译报错的坑

IDEA中写MyBatis的xml配置文件编译报错的坑 说明:用IDEA编译工具在项目中使用Mybatis框架,编写mybatis-config.xml和Mapper.xml配置文件时,编译项目出现错误,错误提示为: xml中1字节的UTF-8序列的字节1无效 The cause of this is a file that is not UTF-8 is being parsed as UTF-8. It is likely that the parser is encountering a

SpringMVC org.xml.sax.SAXParseException: cvc-complex-type.2.4.c 报错处理方式

使用SpringMVC的过程中需要访问静态文件,即在spring-servlet.xml文件中添加了 <mvc:default-servlet-handler /> 标签,以开启SpringMVC对静态文件的拦截处理方法 重启Tomcat,出现如下报错 2016-05-06 03:18:47 ERROR [main] org.springframework.web.servlet.DispatcherServlet - Context initialization failed org.spr

IT忍者神龟之Comparing Struts 1 and 2

Comparing Struts 1 and 2  Edit Page    Browse Space    Add Page    Add News Feature Struts 1 Struts 2 Action classes Struts 1 requires Action classes to extend an abstract base class. Acommon(常规,普遍) problem in Struts 1 isprogramming(设计) to abstract c

pom.xml中添加oracle数据库驱动包报错: Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0

pom.xml 加载jar包时报错:Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0. 由于oracle的ojdbc收费,所以在maven项目导入时没有ojdbc14-10.2.0.4.0.jar包. 解决方法: 配置本地库.下载jar包,把jar包放在仓库对应的文件夹ojdbc14\10.2.0.4.0\里,安装到本地仓库(需要事先配过maven的环境变量),在命令行工具中写如下命令,注意本地仓库位置一定要写对: mvn install:in

IT忍者神龟之Struts2.xml配置完全正确流程能走通但是有红叉解决

一:Multiple annotations found at this line:Undefined actionName  parameter  Undefined actionnamespace  parameter 这个红色叉叉报错: Multiple annotations found at this line: - Undefined actionName parameter - Undefined actionnamespace parameter 但是不影响功能,但是配置多了,很

关于Struts2中struts.xml文件分层问题

没事折腾struts2,遇到异常,浪费好长时间,于是干脆把所有可能的异常都给跑一遍,来个痛快的. 文件的结构 WEB-INF |------configs |-------struts-common.xml |-------struts.xml |------web.xml 遇到的异常: WARNING: Could not find action or result: /Pro_struts2/common/login!preLogin There is no Action mapped fo

启动weblogic报错:string value &#39;2.4&#39; is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee

启动报错: 原因:有人改动了web.xml的头 解决方法: 在web.xml中修改抬头为: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&

Eclipse-Eclispe导入正确工程后出现xml等文件报错

我用Eclipse IDE导入一个正确的项目工程,一些xml配置文件和jsp页面报错,点进去查看具体的错误,xml文件是一些头文件处报错,jsp是一些函数等等.可是别人导入没有报错. 这是因为我们写的这些文件没有严格按照J2EE相关规则进行编写,不过运行也不会出错,只要不让我们项目配置选中这些就好了. 解决方法: 第一步:Project Explorer (如果没有这个窗口可以在eclipse工具栏->Window->show View ->Project Explorer)->选