`
hh792000
  • 浏览: 17147 次
  • 性别: Icon_minigender_1
  • 来自: 通渭
社区版块
存档分类

HTTP Status 404 - No result defined for action com.he.action.LoginAction and res

阅读更多
今天在复习struts2时,在做一个简单的登录时,总是报错:
HTTP Status 404 - No result defined for actioncom.he.action.LoginAction and result success
查阅资料发现我配置文件写错了,在此记录,确保以后不会再犯。
原struts.xml内容:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="defualt" extends="struts-default">
		<action name="login" class="com.he.action.LoginAction">
			<result name="success">success.jsp</result>
			<result name="input">login.jsp</result>
		</action>
	</package>
</struts> 

修改之后的struts.xml内容:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="defualt" namespace="/" extends="struts-default">
		<action name="login" class="com.he.action.LoginAction">
			<result name="success">success.jsp</result>
			<result name="input">login.jsp</result>
		</action>
	</package>
</struts>    
区别在于这一行:
<package name="defualt" namespace="/" extends="struts-default">




分享到:
评论
1 楼 myyk1989 2011-11-03  
20.    <package name="defualt" extends="struts-default">  
21.        <action name="login" class="com.he.action.LoginAction">  
22.            <result name="success">/success.jsp</result>  
23.            <result name="input">/login.jsp</result>  
24.        </action>  
25.    </package>

这样也可以

相关推荐

    No result defined for action.doc

    在IT领域,尤其是在Web开发中,遇到“No result defined for action”这类错误是常见的问题,尤其当使用Struts2框架时更为突出。此类错误通常指向在控制器(Action)中未正确配置或实现结果集(Result),导致请求...

    jsp\No result defined for action and result input.doc

    ### Struts2框架中“No result defined for action and result input”错误解析及解决方法 #### 错误概述 在Struts2框架中开发Web应用程序时,可能会遇到一个名为“No result defined for action and result input...

    RF and Digital Signal Processing for Software-Defined Radio

    RF and Digital Signal Processing for Software-Defined Radio: A Multi-Standard Multi-Mode Approach by Tony J. Rouphael RF and Digital Signal Processing for Software-Defined Radio: A Multi-...

    gcc-arm-none-eabi-9-2019-q4-major-win32.zip

    描述中提到的"GCC compiler toolchain for ARM"进一步确认了这是一个用于ARM平台的GNU Compiler Collection(GCC)工具链。GCC不仅包括了编译器,还包含了一整套用于构建、链接、优化和调试嵌入式软件的工具。 标签...

    jdk-8u261-linux-x64.tar.gz的解压后又压缩的版本,格式为.rar,供有需要者提取

    "SDN"(Software-Defined Networking)是现代网络架构的一种技术,它将网络控制平面与数据平面分离,使得网络配置和管理可以通过软件进行集中控制。这个标签可能意味着这个JDK版本与SDN相关的开发或测试有关,或者...

    Scalar-List-Utils-1.60.tar.gz

    - `defined()`: 检查标量是否已定义,未定义则返回`false`,已定义则返回`true`。 - `ref()`: 返回标量的引用类型,如ARRAY引用、HASH引用等。 - `looks_like_number()`: 判断一个值是否看起来像一个数字,如果是...

    swarm 的帮助文档

    An action type that has been customized for direct execution by an action interpreter.. ActionArgs - interface swarm.activity.ActionArgs. Supertype of ActionCall, ActionTo, and ActionForEach.. ...

    apache-hive-0.14.0-bin.tar.gz

    6. **Hive UDF(User Defined Functions)**:允许用户自定义函数来扩展Hive的功能,包括UDF(单行函数)、UDAF(聚合函数)和UDTF(多行函数)。 7. **Hive Web Interface (WebHive)**:一个基于Web的界面,让用户...

    PyPI 官网下载 | stonewave-sql-udtfs-example-0.1.0.1.tar.gz

    从名字来看,这个库似乎专注于SQL和UDTFS(User-Defined Table-Valued Functions),可能是一个扩展SQL功能的工具,尤其是关于自定义表值函数,这在数据分析或数据库操作中非常有用。 总的来说,"stonewave-sql-...

    O-RAN.WG1.OAM-O1-Interface.0-v03.00.pdf

    O-RAN联盟制定的操作维护接口规范(O-RAN Operations and Maintenance Interface Specification)是一项重要的技术文件,它详细描述了开放无线接入网络(Open RAN)中操作与维护的相关接口,以及如何使用这些接口来...

    servlet2.4doc

    PREV NEXT FRAMES NO FRAMES A B C D E F G H I J L P R S U V -------------------------------------------------------------------------------- A addCookie(Cookie) - Method in class javax.servlet....

    10.User-Defined Functions Appendix C-Programming.pdf

    在ANSYS Fluent软件中,User-Defined Functions(UDFs)允许用户根据自己的需求定制特定的物理模型或算法。这篇官方教程“10.User-Defined Functions Appendix C-Programming.pdf”专注于介绍如何使用C语言编写UDFs...

    apache-hive-1.2.1-bin.tar.gz

    4. **UDF(User Defined Functions)**:允许用户自定义函数,扩展Hive的功能。 5. **ACID(Atomicity, Consistency, Isolation, Durability)特性**:提供事务处理能力,增强了数据一致性。 四、Hive与Hadoop生态...

    PyPI 官网下载 | networking-bigswitch-9.42.1.tar.gz

    BigSwitch是一家专注于软件定义网络(Software Defined Networking, SDN)解决方案的公司,其产品旨在提供灵活、可扩展的网络管理服务,尤其在云环境和大规模数据中心中表现出色。 此资源的完整名称是"networking-...

    lichee_20170502_1607_全志R16的linux系统编译需要改动的文件_使用parrotv1.1的内核_没有外层目录.7z

    [sudo] password for rootroot: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列软件包是自动安装的并且现在不需要了: fakeroot libalgorithm-diff-perl libalgorithm-...

    Cocos Creator 3D开发入门----CocosCreator3D篮球.zip

    /* class member could be defined like this */ // dummy = ''; /* use `property` decorator if your want the member to be serializable */ // @property // serializableDummy = 0; onLoad(): ...

    org.springframework.web.servlet-3.0.1.RELEASE-A.jar

    Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0' defined in ServletContext resource [/WEB-INF/springMVC-servlet.xml]: Initialization of bean failed;...

    PyPI 官网下载 | networking-bigswitch-9.42.15.tar.gz

    "networking-bigswitch"这个名字暗示了它主要关注的是与BigSwitch相关的网络操作,BigSwitch是一家专注于软件定义网络(Software Defined Networking, SDN)和网络功能虚拟化(Network Functions Virtualization, ...

    apache-hive-2.0.0-bin.tar

    8. **存储过程**:Hive支持自定义函数(UDF,User Defined Function)、自定义聚合函数(UDAF,User Defined Aggregate Function)和自定义表生成函数(UDTF,User Defined Table Generating Function),用户可以...

    apache-cassandra-3.11.14-bin.tar.gz

    11. **Triggers 和 User-Defined Functions (UDFs)**:Cassandra 3.x 开始支持 Triggers 和 UDFs,允许用户自定义数据修改前后的逻辑和计算函数。 12. **TTL (Time To Live)**:数据可以设置 TTL,到期后自动删除,...

Global site tag (gtag.js) - Google Analytics