error.jsp中的错误提示:No result defined for action zqq.action.LoginAction and result input
struts.xml中的映射:
<global-results>
<!-- 下面定义的结果对所有的Action都有效 -->
<result name="exception">/error.jsp</result>
<result name="success">/success.jsp</result>
</global-results>
<global-exception-mappings>
<!-- 指Action抛出Exception异常时,转入名为exception的结果。 -->
<exception-mapping exception="java.lang.Exception" result="exception"/>
</global-exception-mappings>
<action name="Login" class="zqq.action.LoginAction">
<result name="failure">/login.jsp</result>
</action>
LoginAction的代码:
public String execute() throws Exception{
return SUCCESS;
}
success你已经定义成全局的result了,看你贴出来的代码没什么问题呀。
从错误信息来看,是说没有定义result。
你有没有配置拦截器<interceptor-ref name="validation"/>?如果有的话,去掉所有的拦截器。
包括这个缺省的拦截器栈:<default-interceptor-ref name="defaultStack"/>
分享到:
相关推荐
jsp\No result defined for action and result input.doc
No result defined for action.doc
linux ls find 时大于2G文件时出现Value too large for defined data type 系统本身支持大于2G文件但查询有问题的解决办法
最近在使用python过重遇到这个问题,NameError: name 'xxx' is not defined,在学习python或者在使用python的过程中这个问题大家肯定都遇到过,在这里我就这个问题总结以下几种情况: 错误NameError: name ‘xxx’ ...
3G软件无线电software defined radio for 3G,很不错,可惜是英文的,
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-...
C++经典错误之already defined in *.obj解决方法是指在C++编程中遇到的一个常见错误,即链接器报告已经定义了某个符号(already defined),从而导致链接失败。这种错误通常发生在多个源文件中定义了相同的全局变量...
网上的东西好大多都不能直接用,自己结合网上资料做了一个Struts2+Spring3+MyBatis3的测试工程,JUnit测试用例和WEB服务。 内涵完整jar包,解压直接可用,包括一个表文件。 Eclipse3.2+Tomcat/5.5+jdk1.5.0_17 - ...
Environment variable ORACLE_UNQNAME not defined错误解决
to present signal processing principles used in the software defined radio, ranging from analog ,digital modulation to RF, DSP and data conversion.
Learn to:Control storage costs,Eliminate storage bottlenecks,Use IBM GPFS to solve storage management challenges
struts1.3.9 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the ...
and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal ...
安装Pycharm进行Python开发时,经常右下角提示No R interpreter defined,处理方式: 1、安装R,然后将R的路径添加到Pycharm中: 2、如果不需要进行R语言开发,直接卸载掉R语言插件: 然后重启Pycharm即可。 以上...
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider). log4j:WARN Please initialize the log4j system properly. 2009-8-29 14:02:46 org....
报如下图错误 解决办法: 1.查看官方文档: https://www.kancloud.cn/manual/thinkphp6_0/1037643 文档里说: 所以我命通过命令安装扩展: composer require topthink/think-multi-app 出现如下图说明安装成功了...
Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return the specified result, such as Action.SUCCESS, Action.INPUT, etc. void ...
Multi-Band Software Defined Radio for Spaceborne Communications, Navigation, Radio Science, and Sensors