ps:转过来的,很有用
在开发struts2时,页面报No result defined for action and result时,大部分的原因有以下几种:
1、validate方法没有通过;(没有使用被排除掉)
2、页面元素中有重命名时,但后台action类的对应的接收此同名参数的是变量而没有写成数组,这个极有可能,我就碰到过,搞了好久才发现是这个原因(其中一个原因)要检查这种错误时,可以 1,在后台action类中重写ActionSupport中的 void addActionError(String anErrorMessage) void addActionMessage(String aMessage) void addFieldError(String fieldName, String errorMessage) 这三个方法,在并在其实现代码中设置断点,监控传入的参数,并可获知页面的相关报错具体原因. 2,在页面中加入以下标签,将错误显示出来:
<fielderror></fielderror>
3、我的pojo类的名称与里面的某一个字段重名。最好不要用表名来命名该表里面的字段。
分享到:
相关推荐
No result defined for action.doc
jsp\No result defined for action and result input.doc
error LNK2005: DllMain already defined in corelibc.lib(dllmain.obj)的解决方案
SDN Software.Defined.Networks .Thomas.D.Nadeau.文字版
Software.Defined.Radio.The.Software.Communications.Architecture。 软件无线电软件通信体系结构SCA详解经典外文书籍,包括SCA IDL定义和域文件XML格式,已经SCA实现实例等。
19.5.2 Domain Profile for Terminal Device 405 19.5.3 An SCA-compliant Talk Application 409 19.5.4 Multi-threaded Servant 414 19.5.5 Talk Application XML 417 19.5.6 Modifications for Minimum CORBA ...
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-...
You will learn how to use vSphere virtualization in a software-defined approach, which will help you to achieve a fully-virtualized infrastructure and to extend this infrastructure for compute, ...
Software-Defined-Perimeter.zip
C++经典错误之already defined in *****.obj解决方法
2 Getting In and Out of gdb . . . . . . . . . . . . . . . . 11 2.1 Invoking gdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 Choosing files . . . . . . . ....
JAVA 一个包:org-apache-commons-lang.jar
4.6 Your Program’s Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7 Debugging an Already-running Process . . . . . . . . . . . . . . . . . . . . . . 4.8 Killing the Child ...
Of course, if you are wondering whether this book is going to teach you how to create amazing websites or incredible applications, the answer is "no"—that is a job for other books. So many books out...
UDF官方教程5.User Defined Scalars and Memory.pdf
1.1.1 Generations of the SystemVerilog standard.......................................................2 1.1.2 Donations to SystemVerilog ..................................................................
其中一个问题是报but there is no HDFS_NAMENODE_USER defined. Aborting operation. Starting datanodes 直接解决 在Hadoop安装目录下找到sbin文件夹 在里面修改四个文件 1、对于start-dfs.sh和stop-dfs.sh文件,...
1.5.2 UCS2 and GSM data coding and conversion for SMS text mode 1.5.2.1 Implementing output of SIM data to Terminal (direction TA to TE) ................................ 21 1.5.2.2 Implementing input...
The growing demand for interactive multimedia technologies, in various application domains in this era of wireless and Internet communication, necessitated a number of desirable properties to be ...
and data planes............................................................. 6 Understanding the Need for SD‐WAN....................................... 7 Dealing with applications hindered by ...