随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815446
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

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 阅读(1856) | 评论 (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 阅读(574) | 评论 (0)  编辑
struts2+spring+hibernate 懒加载异常:org.hibernate.LazyInitializationException: failed to lazily initialize      摘要: 用OpenSessionInViewFilter过滤器,注意hibernateFilter过滤器和struts2过滤器在映射时的先后顺序。同时要配置事物处理,否则会导致session处于只读状态而不能做修改、删除的动作。  阅读全文
posted @ 2011-07-13 13:55 Ke 阅读(1158) | 评论 (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 阅读(3865) | 评论 (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 阅读(648) | 评论 (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 阅读(1495) | 评论 (0)  编辑
<s:actionmessage/>标签显示Action信息      摘要: 使用标签显示Action信息时,有一个要注意的地方,  阅读全文
posted @ 2008-01-18 11:23 Ke 阅读(5466) | 评论 (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 阅读(7341) | 评论 (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 阅读(10669) | 评论 (12)  编辑