struts 2
struts2 + spring, 使用session範圍的Bean的配置事項
摘要: 異常信息:
Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running out
閱讀全文
posted @
2011-09-06 10:22 Ke 閱讀(1881) |
評論 (1) 編輯
struts2解決No configuration found for the specified action 異常
摘要: 錯誤信息:
2011-09-05 09:55:23,010 WARN [http-80-1] components.Form (Form.java:308) - No configuration found for the specified action: '/feeder/excelToolList.action' in namespace: '/feeder'. Form action defaulting to 'action' attribute's literal value.
閱讀全文
posted @
2011-09-05 10:16 Ke 閱讀(586) |
評論 (0) 編輯
struts2+spring+hibernate 懶加載異常:org.hibernate.LazyInitializationException: failed to lazily initialize
摘要: 用OpenSessionInViewFilter過濾器,注意hibernateFilter過濾器和struts2過濾器在映射時的先后順序。同時要配置事物處理,否則會導致session處于只讀狀態而不能做修改、刪除的動作。
閱讀全文
posted @
2011-07-13 13:55 Ke 閱讀(1179) |
評論 (0) 編輯
[轉]Cannot serialize session attribute--問題的解決
摘要: Tomcat 問題: Cannot serialize session attribute XXX for ..的解決辦法
在關閉和重啟Tomcat 5時, tomcat 會試圖 serialize存在的session資源. 如果 sessions中相關的對象沒有實現 serializable 接口, 就會出現Cannot serialize session attribute XXX for 異常.
閱讀全文
posted @
2010-01-09 10:22 Ke 閱讀(3901) |
評論 (0) 編輯
Struts2中的單Form多圖片提交按鈕(Submit)的使用 (轉)
摘要:
src="/issframe/images/btn/btn_find.jpg" cssClass="button_image"
onclick="return CheckInputForRequired();" action="user" method="doSearch"/>
閱讀全文
posted @
2008-06-16 18:41 Ke 閱讀(666) |
評論 (0) 編輯
(轉)NetBeans 6 和 Struts2
摘要: 準備工作:
1. JDK 5.0 (或更高版本);
2. NetBeans 6 或者 NetBeans 6.1 Beta(本文使用的是NetBeans 6.1 Beta);
3. Struts2 開發包;
4. Tomcat 5.5 (或更高版本)。
閱讀全文
posted @
2008-04-07 19:06 Ke 閱讀(1512) |
評論 (0) 編輯
<s:actionmessage/>標簽顯示Action信息
摘要: 使用
標簽顯示Action信息時,有一個要注意的地方,
閱讀全文
posted @
2008-01-18 11:23 Ke 閱讀(5487) |
評論 (0) 編輯
WebWork/struts2中格式化輸出數字和日期的方法
摘要: struts2中格式化輸出數字和日期的方法
資源文件
......
#格式化數字或時間輸出
global.format.date={0,date,yyyy-MM-dd}
global.format.money={0,number,¥##0.00 '元'}
......
JSP文件
格式化時間:
格式化數字:
閱讀全文
posted @
2008-01-13 17:46 Ke 閱讀(7363) |
評論 (0) 編輯
struts2中使用displayTags的問題(ParametersInterceptor - [setParameters]: Unexpected Exception)
摘要: ERROR - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'd-49653-p' on 'class dgut.ke.actions.SubjectAction: Error setting expression 'd-49653-p' with value '[Ljava.lang.String;@d73256'
閱讀全文
posted @
2007-11-17 15:21 Ke 閱讀(10717) |
評論 (12) 編輯