`

【转】当发生No result defined for action **Action and result input错误时的处理方法

阅读更多

当发生No result defined for action **Action and result input错误时的处理方法:
1、检查validate方法有没有通过;
2、检查页面元素中是否有重命名,当元素重名时,后台action类对应的接收此同名参数的是变量没有写成数组时就会导致这种错误;
重点检查后台action类中ActionSupport中的void addActionError(String anErrorMessage)、void addActionMessage(String aMessage)、void addFieldError(String fieldName, String errorMessage)
这三个方法,在并在其实现代码中设置断点,监控传入的参数,并可获知页面的相关报错具体原因,同时在页面中加入以下标签,将错误显示出来:
<div style=”color:red”>
  <s:fielderror />
</div>

 

 

转自:http://www.itleft.com/archives/38.html

分享到:
评论

相关推荐

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

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

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    The VariSpec always processes each command to completion before starting on the next command, and it has a 256 byte input buffer, so there is no problem issuing several commands at once; they will all...

    struts_2.3.12GA_API文档(chm版本)

    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 ...

    a project model for the FreeBSD Project.7z

    There is no defined model for how people write code in FreeBSD. However, Niels Jørgenssen has suggested a model of how written code is integrated into the project. Figure 4-1. Jørgenssen's model ...

    微软内部资料-SQL性能优化3

    For example, if T1 writes some object that is in T2’s input or output set, there is a dependency between T1 and T2. Bad Dependencies These include lost updates, dirty reads, non-repeatable reads, ...

    PMBOK 2008 English Version

    The Project Manager is responsible for the project objectives to deliver the final product that has been defined, within the constraints of project scope, time, cost and required quality. Strengths...

    php.ini-development

    of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a ; previously set variable or directive (e.g. ${...

    QTP下载链接.txt

    Action是QTP组织测试用例的具体形式,拥有自己的DataTable和Object Repository,支持Input和output参数。Action可以设置为share类型的,这样可以被其他test中的Action调用(注意:QTP是不支持在一个test中调用另外一...

    BURNINTEST--硬件检测工具

    - Minor changes to the No operation error watchdog timer for the CD and Hard disk tests. - Minor correction to the Butterfly seek test. - Video playback trace logging increased. Release 5.3 build ...

    Debugging with GDB --2002年5.11

    r Your program's input and output file:///C|/gdb.html (1 of 352)19. 1. 2004 20:32:03 Debugging with GDB Debugging an already-running process r Killing the child process r Debugging programs with ...

    Java邮件开发Fundamentals of the JavaMail API

    framework adds support for typing arbitrary blocks of data and handling it accordingly. This doesn't sound like much, but it is your basic MIME-type support found in many browsers and mail tools ...

    2009 达内Unix学习笔记

    logout 当csh时可用来退出,其他shell不可用。 clear 清屏,清除(之前的内容并未删除,只是没看到,拉回上面可以看回)。 五、目录管理命令 pwd 显示当前所在目录,打印当前目录的绝对路径。 cd 进入某目录,DOS...

    ZendFramework中文文档

    创建默认的控制器(Action Controller) 7.1.2.6. 创建你的视图脚本 7.1.2.7. 创建你自己的错误控制器 7.1.2.8. 访问站点! 7.2. Zend_Controller 基础 7.3. 前端控制器 7.3.1. 概述 7.3.2. 主要方法 7.3....

    UG6.0快捷键大全

    MESSAGE Changes the density and the density units for a solid body. SYNONYMS edit mass, thickness, solid property HELP DSN_solid_density BITMAP editsoliddensity ACTIONS STANDARD SEPARATOR ...

    DebuggingWithGDB 6.8-2008

    4.6 Your Program’s Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7 Debugging an Already-running Process . . . . . . . . . . . . . . . . . . . . . . 4.8 Killing the Child ...

    iPod+Authentication+Coprocessor+Spec+2.0C+R1

    For further information about authenticating Apple devices and their attached accessories, see apple's MFi Accessory Firmware Specification and MFi Accessory Hardware Specification Related documents 9...

    Software Testing and Continuous Quality Improvement

    Software Testing and Continuous Quality Improvement &lt;br&gt;SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1 1 Quality Assurance Framework. . . . . . . . . . . . . . . . . ....

    Debugging with GDB --2003年6.0

    Your program’s input and output . . . . . . . . . . . . . . . . . . . . . . . . Debugging an already-running process . . . . . . . . . . . . . . . . . . . Killing the child process . . . . . . . . . ...

    Debugging with GDB --2001年5.3

    Your program’s input and output . . . . . . . . . . . . . . . . . . . . . . . . Debugging an already-running process . . . . . . . . . . . . . . . . . . . Killing the child process . . . . . . . . . ...

Global site tag (gtag.js) - Google Analytics