原文:Struts2中 No result defined for action com.test.action.LoginAction and result success

com.opensymphony.xwork .util.logging.commons.CommonsLogger warn警告: Could not find action or resultNo result defined for action com.test.action.LoginAction and result successat com.opensymphony.xwork . ...

2012-10-21 21:49 0 3867 推薦指數:

查看詳情

No result defined for action

在開發總遇到這個問題,但一直不知是何因,今天在同事的博客里看到才明白其因: No result defined for action: 原因:Action的屬性值為空的時候,Struts2的默認攔截器會報錯,但是又找不到input的Result,不能夠把錯誤返回,所以報這種錯誤。 解決方法 ...

Wed Dec 31 18:44:00 CST 2014 0 4858
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM