沙漠中的魚(yú)

          欲上天堂,先下地獄
          posts - 0, comments - 56, trackbacks - 0, articles - 119
            BlogJava :: 首頁(yè) ::  :: 聯(lián)系 :: 聚合  :: 管理
          這是struts2的一個(gè)攔截器報(bào)的錯(cuò)誤,當(dāng)你的form中的數(shù)據(jù)有問(wèn)題,比如說(shuō)
          <input type="text" name="receiverLoginID" value="<%=name%>"/>
          當(dāng) name值為NULL時(shí),就出這個(gè)錯(cuò)了,所以你可以在當(dāng)前頁(yè)面加入以下標(biāo)簽
          <div style="color:red">
              <s:fielderror />
          </div>
          它就會(huì)顯示攔截器的錯(cuò)誤,并在struts的XML中對(duì)應(yīng)action里加如
          <result name="input">/AddProducts.jsp</result>
          讓他把錯(cuò)誤返回到該頁(yè)面就可以了

          評(píng)論

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

          2009-10-31 15:06 by 丑孩
          謝過(guò)了,呵呵

          郁悶死我了,

          老告訴我 沒(méi)有 result,

          呵呵~~~~~

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

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

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

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

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

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

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

          2011-02-26 17:24 by 游人
          非常感謝,也是一語(yǔ)點(diǎn)中,馬上就找到錯(cuò)誤了。

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

          2011-03-13 13:45 by footman
          易于驚醒夢(mèng)中人

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

          2011-05-23 17:36 by 孫沫
          超級(jí)感謝

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          2012-08-07 15:37 by xiaohuasi
          怎么解決的,我也遇到這個(gè)問(wèn)題,不過(guò)如果我不給action請(qǐng)求帶參數(shù)就沒(méi)問(wèn)題

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

          2012-12-15 16:20 by ss
          高手 ,牛逼,確實(shí)是你說(shuō)的問(wèn)題

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

          2013-01-10 01:48 by Terry
          牛逼,困擾一個(gè)下午的問(wèn)題解決了

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

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

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

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

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

          2015-08-06 20:32 by java小菜
          牛逼
          主站蜘蛛池模板: 三江| 巴彦淖尔市| 桑植县| 崇礼县| 汉川市| 沧源| 沙洋县| 封开县| 隆林| 岫岩| 宁河县| 平邑县| 卫辉市| 射洪县| 永平县| 镇原县| 盐源县| 陆良县| 澄江县| 定安县| 哈尔滨市| 望江县| 积石山| 五指山市| 崇仁县| 沙雅县| 凤山县| 晋中市| 宁强县| 漳州市| 阿勒泰市| 泗阳县| 沁阳市| 石嘴山市| 宜昌市| 蓝田县| 曲周县| 东港市| 祁门县| 芜湖市| 仙游县|