1. 程式人生 > >No result defined for action cn.crm.action.LinkManAction and result input

No result defined for action cn.crm.action.LinkManAction and result input

cti gin str post 錯誤信息 error style IE -s

這是struts2的一個攔截器報的錯誤,當你的form中的數據有問題,比如說
<input type="text" name="receiverLoginID" value="<%=name%>"/>
當 name值為NULL時,就出這個錯了,所以你可以在當前頁面加入以下標簽
<div style="color:red">
<s:fielderror />
</div>
它就會顯示攔截器的錯誤,並在struts的XML中對應action裏加如
<result name="input">/當前頁面</result>
錯誤信息就會返回到該頁面了

No result defined for action cn.crm.action.LinkManAction and result input