Posted on 2009-01-06 21:41
沙漠中的魚 閱讀(28907)
評論(21) 編輯 收藏 所屬分類:
開源框架
這是struts2的一個攔截器報的錯誤,當你的form中的數據有問題,比如說
<input type="text" name="receiverLoginID" value="<%=name%>"/>
當 name值為NULL時,就出這個錯了,所以你可以在當前頁面加入以下標簽
<div style="color:red">
<s:fielderror />
</div>
它就會顯示攔截器的錯誤,并在struts的XML中對應action里加如
<result name="input">/AddProducts.jsp</result>
讓他把錯誤返回到該頁面就可以了
評論
# re: No result defined for action and result input 回復 更多評論
2009-10-31 15:06 by
謝過了,呵呵
郁悶死我了,
老告訴我 沒有 result,
呵呵~~~~~
# re: No result defined for action and result input 回復 更多評論
2009-11-24 17:08 by
一語中的!多謝
# re: No result defined for action and result input[未登錄] 回復 更多評論
2010-02-05 15:25 by
多謝
# re: No result defined for action and result input 回復 更多評論
2010-05-26 07:22 by
太感謝了~~~~~~~~
我被這種錯誤折磨了一天,就連晚上都在做噩夢,如果不是你,我今天晚上又要做惡夢了。。。。。。
認識一下吧,我的QQ是1021807894,全天在線
# re: No result defined for action and result input 回復 更多評論
2011-02-26 17:24 by
非常感謝,也是一語點中,馬上就找到錯誤了。
# re: No result defined for action and result input 回復 更多評論
2011-03-13 13:45 by
易于驚醒夢中人
# re: No result defined for action and result input 回復 更多評論
2011-05-23 17:36 by
超級感謝
# re: No result defined for action and result input 回復 更多評論
2011-06-14 17:07 by
非常感謝
# re: No result defined for action and result input 回復 更多評論
2011-07-11 16:09 by
受教了
# re: No result defined for action and result input 回復 更多評論
2011-07-13 14:16 by
感謝,Struts2的錯誤提示真是服了
# re: No result defined for action and result input 回復 更多評論
2012-02-27 13:36 by
多謝
# re: No result defined for action and result input[未登錄] 回復 更多評論
2012-04-12 09:50 by
感激涕零
# re: No result defined for action and result input[未登錄] 回復 更多評論
2012-04-19 21:23 by
太感謝了!為了這個錯誤我找了半天,就打錯了個字母,非常感謝你哈!
# re: No result defined for action and result input 回復 更多評論
2012-04-26 12:25 by
在沒看見你的解答之前,我幾乎奔潰了,怎么就沒有result了呢,這個myeclipse小賤人,多謝您老啦,哎,有經驗就是好啊,不會被這個問題糾結啊,以后遇到問題還是多百度一下,不要自己一個人糾結啦
# re: No result defined for action and result input 回復 更多評論
2012-04-28 15:26 by
感激不盡,都快瘋啦!高手不一樣啊
# re: No result defined for action and result input 回復 更多評論
2012-08-07 15:37 by
怎么解決的,我也遇到這個問題,不過如果我不給action請求帶參數就沒問題
# re: No result defined for action and result input 回復 更多評論
2012-12-15 16:20 by
高手 ,牛逼,確實是你說的問題
# re: No result defined for action and result input[未登錄] 回復 更多評論
2013-01-10 01:48 by
牛逼,困擾一個下午的問題解決了
# re: No result defined for action and result input 回復 更多評論
2013-06-06 10:35 by
表單數據有錯,也會報這個錯誤。
我的表單里提交了兩個同樣的值:
cateList[0].cid
本來應該是
cateList[0].cid
cateList[1].cid
記數弄錯了。
# re: No result defined for action and result input[未登錄] 回復 更多評論
2014-12-23 15:56 by
有用,牛逼
# re: No result defined for action and result input[未登錄] 回復 更多評論
2015-08-06 20:32 by
牛逼