No result defined for action com.nynt.action.ManageAction and result input 问题原因:

1)、 在action类中定义的一个return "input";在xml文件里没有东西接收。

           举例说明:

                     struts.xml 文件:

   <package name="file" namespace="/file" extends="struts-default">
 
      <action name="inputFile" class="action.FileAction" method="inputFile">
        <result name="success">/index.jsp</result>
      </action>

  </package>

action类文件:

public String inputFile(){
        System.out.println(hh);
        return "input";
    }

此时会报这样的异常

2)、struts拦截器无法将前台类型与后台类型匹配报出异常,此时进不了后台

举例说明:
        jsp页面:
           <form action="file/inputFile.action" method="post" enctype="multipart/form-data">
            <input type="text" name="hh" value="aa"/>
          <hr/>
          <input type="submit" value="上传"/>
          </form>

      action类文件:

              private int hh;

             public String inputFile(){
                  System.out.println(hh);
                 return "success";
            }

        

           action 中 aa 为 int 类型有 setter 和g etter 方法,此时报出此异常

              这是因为struts的拦截器没有办法将value里面的“aa”强制转化成int类型

     假设jsp页面有两个<input type="text" value="bb" name="hh"/>  name值同样
        里面的类型都是能够强制转化成 int 的,可是struts的拦截器没有办法拼接
        所以也会报出类型不匹配错误,即这个异常。

No result defined for action com.nynt.action.ManageAction and result input问题的更多相关文章

  1. No result defined for action com.lk.IndexAction and result success

    意图访问一个 /es/index.action 竟然出现: [SAE ] ERROR [05-11 13:54:32] [http-80-5] com.opensymphony.xwork2.util ...

  2. no result defined for action

    1.no result defined for action .......and result input    或者 no result defined for action .......and ...

  3. Struts 2.x No result defined for action 异常

      这是我跑struts2的第一个例子,跑的也够郁闷的,这个问题烦了我几个钟... 2011-5-10 10:10:17 com.opensymphony.xwork2.util.logging.co ...

  4. HTTP Status 404 - No result defined for action com.hebky.oa.classEntity.action.EntitysAction and result input

    在开发中总遇到这个问题,No result defined for action:原因:Action中的属性值为空的时候,Struts2的默认拦截器会报错,但是又找不到input的Result,不能够 ...

  5. Struts2问题,已解决No result defined for action and result input

    struts2.1.8 必须在struts.xml中配置namespace属性 如果你在2.0中一切OK,但是在2.1中确出现了No result defined for action的异常,就是在因 ...

  6. validators配置要点及No result defined for action报错解决方案

    在做JavaEE SSH项目时,接触到validators验证. 需要了解validators配置,或者遇到No result defined for action 这个错误时,可查阅本文得到有效解决 ...

  7. struts异常:No result defined for action

    问题描述: No result defined for action com.freedom.funitureCityPSIMS.controller.login.CheckAction and re ...

  8. SSH配置struts校验发生No result defined for action actions.AdminLoginAction and result input

    配置struts校验发生No result defined for action actions.AdminLoginAction and result input,但是登录,success.jsp, ...

  9. Messages: No result defined for action cn.itcast.oa.test.TestAction and result SUCCESS

    Struts Problem Report Struts has detected an unhandled exception: Messages: No result defined for ac ...

随机推荐

  1. golang martini 源码阅读笔记之inject

    martini是go语言写的一个超级轻量的web开源框架,具体源码可在github搜索找到.13年那会开始接触go语言时有稍微看过这个框架,由于之后没有继续使用go就慢慢忽略了,最近由于手头项目可能会 ...

  2. Javascript基础一(2)

    循环语句 1.for循环 <script> //从1乘到100: //计数器 // var product = 1; // for(var i=1;i<=10;i++){ // pr ...

  3. 多目标跟踪方法:deep-sort

    多目标跟踪方法:deep-sort deep_sort Multitarget tracking data association 读'Simple Online and Realtime Track ...

  4. ccf消除类游戏

    问题描述 消除类游戏是深受大众欢迎的一种游戏,游戏在一个包含有n行m列的游戏棋盘上进行,棋盘的每一行每一列的方格上放着一个有颜色的棋子,当一行或一列上有连续三个或更多的相同颜色的棋子时,这些棋子都被消 ...

  5. LeetCode 48. Rotate Image My Submissions Question (矩阵旋转)

    题目大意:给一个矩阵,将其按顺时针旋转90°. 题目分析:通法是先将矩阵转置,然后再反转每一行,或者是先反转每一列,然后再将其转置.I just want to say"It's amazi ...

  6. xhost + 的作用

    xhost 是用来控制X server访问权限的. 通常当你从hostA登陆到hostB上运行hostB上的应用程序时, 做为应用程序来说,hostA是client,但是作为图形来说, 是在hostA ...

  7. Vysor安装

    Vysor安装     Vysor安装    

  8. Openwrt Export Gpio Configure (7)

    1      Scope of Document This document describes how to export gpio interface under gpio-export driv ...

  9. Response.ContentType都有哪些?

    Response.ContentType 名称 类型ai application/postscriptaif audio/x-aiffaifc audio/x-aiffaiff audio/x-aif ...

  10. flashfxp 命令行

    以后更新软件时,尽量用bat命令行 http://www.flashfxp.com/forum/flashfxp/frequently-asked-questions-faq-/14748-comma ...