沙漠中的魚

          欲上天堂,先下地獄
          posts - 0, comments - 56, trackbacks - 0, articles - 119
            BlogJava :: 首頁 ::  :: 聯(lián)系 :: 聚合  :: 管理

          No result defined for action and result input

          Posted on 2009-01-06 21:41 沙漠中的魚 閱讀(28921) 評論(21)  編輯  收藏 所屬分類: 開源框架
          這是struts2的一個攔截器報的錯誤,當(dāng)你的form中的數(shù)據(jù)有問題,比如說
          <input type="text" name="receiverLoginID" value="<%=name%>"/>
          當(dāng) name值為NULL時,就出這個錯了,所以你可以在當(dāng)前頁面加入以下標(biāo)簽
          <div style="color:red">
              <s:fielderror />
          </div>
          它就會顯示攔截器的錯誤,并在struts的XML中對應(yīng)action里加如
          <result name="input">/AddProducts.jsp</result>
          讓他把錯誤返回到該頁面就可以了

          評論

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2009-10-31 15:06 by 丑孩
          謝過了,呵呵

          郁悶死我了,

          老告訴我 沒有 result,

          呵呵~~~~~

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2009-11-24 17:08 by yezi1305
          一語中的!多謝

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2010-02-05 15:25 by dd
          多謝

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2010-05-26 07:22 by 杜瑩
          太感謝了~~~~~~~~
          我被這種錯誤折磨了一天,就連晚上都在做噩夢,如果不是你,我今天晚上又要做惡夢了。。。。。。
          認(rèn)識一下吧,我的QQ是1021807894,全天在線

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-02-26 17:24 by 游人
          非常感謝,也是一語點中,馬上就找到錯誤了。

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-03-13 13:45 by footman
          易于驚醒夢中人

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-05-23 17:36 by 孫沫
          超級感謝

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-06-14 17:07 by 陳軍
          非常感謝

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-07-11 16:09 by 淡定
          受教了

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2011-07-13 14:16 by 張輝武
          感謝,Struts2的錯誤提示真是服了

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2012-02-27 13:36 by 禾谷
          多謝

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2012-04-12 09:50 by allen
          感激涕零

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2012-04-19 21:23 by 呵呵
          太感謝了!為了這個錯誤我找了半天,就打錯了個字母,非常感謝你哈!

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2012-04-26 12:25 by 豬豬次品
          在沒看見你的解答之前,我?guī)缀醣紳⒘耍趺淳蜎]有result了呢,這個myeclipse小賤人,多謝您老啦,哎,有經(jīng)驗就是好啊,不會被這個問題糾結(jié)啊,以后遇到問題還是多百度一下,不要自己一個人糾結(jié)啦

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2012-04-28 15:26 by 咔咔
          感激不盡,都快瘋啦!高手不一樣啊

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2012-08-07 15:37 by xiaohuasi
          怎么解決的,我也遇到這個問題,不過如果我不給action請求帶參數(shù)就沒問題

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2012-12-15 16:20 by ss
          高手 ,牛逼,確實是你說的問題

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2013-01-10 01:48 by Terry
          牛逼,困擾一個下午的問題解決了

          # re: No result defined for action and result input  回復(fù)  更多評論   

          2013-06-06 10:35 by baiyuxiong
          表單數(shù)據(jù)有錯,也會報這個錯誤。
          我的表單里提交了兩個同樣的值:
          cateList[0].cid
          本來應(yīng)該是
          cateList[0].cid
          cateList[1].cid
          記數(shù)弄錯了。

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2014-12-23 15:56 by 1
          有用,牛逼

          # re: No result defined for action and result input[未登錄]  回復(fù)  更多評論   

          2015-08-06 20:32 by java小菜
          牛逼
          主站蜘蛛池模板: 夹江县| 普宁市| 林西县| 镶黄旗| 伊川县| 隆尧县| 行唐县| 东海县| 红原县| 米易县| 巫山县| 宕昌县| 称多县| 那曲县| 堆龙德庆县| 通山县| 青冈县| 灵宝市| 柘城县| 泰顺县| 黔南| 康乐县| 莱芜市| 乌审旗| 黄平县| 安达市| 阳东县| 祁门县| 志丹县| 阿拉善右旗| 建昌县| 河源市| 离岛区| 云和县| 新营市| 华亭县| 池州市| 五河县| 威海市| 广饶县| 青岛市|