![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java/j2ee
leehom_young
这个作者很懒,什么都没留下…
展开
-
Java中文排序完美新解
1 问题提出汉字排序不同于英文字母的排序,主要有两种排序方式:一种是按拼音首字母排序;一种是按笔画排序。大多数情况下是按拼音首字母排序。那汉字究竟怎样通过其拼音首字母排序呢?好在字符集帮我们解决了这个问题。众所周知的包含汉字的字符集有gb2312和GBK,后者转载 2011-09-09 22:30:20 · 6913 阅读 · 0 评论 -
log4j warn 问题集
log4j:WARN No appenders could be found for logger直接写我的解决办法:在src下面新建file名为log4j.properties内容如下:# Configure logging for testing: optionally with log filelog4j.rootLogger=WARN, stdout#转载 2012-08-22 14:13:10 · 1353 阅读 · 2 评论 -
多行数据提交到Struts的ActionForm的List属性中
[转自] http://extjs2.javaeye.com/blog/460926今天遇到提交多行数据问题, 在网上找了一点资料: WEB 应用中一般都会处理主从表的信息, 或者称之为头层与行层的一对多的关系数据,如订单头/订单明细. 对于这种关系数据提交到后台的 Struts 的 ActionForm 的话, 这个 ActionForm 就要好好的设计一下, 不然会给自已带来许多额转载 2012-08-22 14:57:06 · 7732 阅读 · 0 评论 -
struts2+spring的两种整合方式
也许有些人会因为学习了struts1,会以为struts2、struts1与spring的整合也是一样的,其实这两者相差甚远。下面就来讲解一下struts2与spring的整合两种方案。(部分转载,里面也有自己的内容) 借助于Spring插件(Struts2-spring-plugin-XXX.jar),我们可以非常简单地完成Spring和Struts2的整合,这种整合包括让Action转载 2012-08-29 10:31:10 · 26731 阅读 · 1 评论 -
Spring 和 struts1.2 整合的三种方式
Spring 和 struts1.2 整合的三种方式1,使用Spring 的 ActionSupport 2, 使用Spring 的 DelegatingRequestProcessor 类。3,全权委托。无论用那种方法来整合第一步就是要为struts来装载spring的应用环境。 就是在 struts 中加入一个插件。struts-config.xml中 ="转载 2012-08-29 10:08:19 · 1307 阅读 · 0 评论 -
Socket bind failed: [730048],tomcat启动失败
严重: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í?? at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649) at org.apa原创 2012-04-17 19:21:52 · 53787 阅读 · 9 评论 -
jar管理
为了以后更好的添加包问题,特意将常用的几个包列举出来,有什么错误,可以提出来,我会及时更改的供大家学习(注:版本问题大家应该明白的,我就不去区分了)。1.oracle连接----需要的jar包:commons-collections-3.2.jar、commons-dbcp.jar、commons-lang-2.3.jar、ojdbc14.jar、commons-pool-1.6-bin.ja原创 2012-04-01 18:40:45 · 1073 阅读 · 0 评论 -
java.lang.IllegalStateException: getOutputStream() has already been ca...
tomcat正常启动。但是一出来有验证码的页面,后台就会报错:信息: Server startup in 13157 ms2008-01-09 21:35:40,390 ERROR [org.apache.catalina.core.ContainerBase.[Ca原创 2011-09-10 20:45:33 · 3633 阅读 · 0 评论 -
hibernate4整合spring3事务问题
本文是作者在对hibernate4+spring3+struts2整合中遇到的一个问题。对s2sh进行了基本的整合搭建以后,就是对事务的控制管理,将hibernate的事务交由spring管理。根据网上资料,applicationContext.xml中基本的配置如下(注意先后顺序的问题): <beans xmlns="http://www.springframework.org/sch转载 2012-09-07 10:03:43 · 17646 阅读 · 8 评论