<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>键者天行 - Java</title><link>http://blog.csdn.net/chensheng913/category/17513.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 22 Sep 2008 17:52:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>chensheng913</dc:creator><title>Java程序员必须要了解的七个开源协议介绍 </title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx</link><pubDate>Mon, 22 Sep 2008 17:51:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2963048.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2963048.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2963048</trackback:ping><description>Java程序员必须要了解的七个开源协议介绍。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2963048.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>JSP分页技术实现</title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx</link><pubDate>Mon, 22 Sep 2008 11:50:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2960603.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2960603.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2960603</trackback:ping><description>目前比较广泛使用的分页方式是将查询结果缓存在HttpSession或有状态bean中，翻页的时候从缓存中取出一页数据显示。这种方法有两个主要的缺点：一是用户可能看到的是过期数据；二是如果数据量非常大时第一次查询遍历结果集会耗费很长时间，并且缓存的数据也会占用大量内存，效率明显下降。
　　其它常见的方法还有每次翻页都查询一次数据库，从ResultSet中只取出一页数据（使用rs.last();rs.getRow()获得总计录条数，使用rs.absolute()定位到本页起始记录）。这种方式在某些数据库(如oracle)的JDBC实现中差不多也是需要遍历所有记录，实验证明在记录数很大时速度非常慢。
　　至于缓存结果集ResultSet的方法则完全是一种错误的做法。因为ResultSet在Statement或Connection关闭时也会被关闭，如果要使ResultSet有效势必长时间占用数据库连接。

　　因此比较好的分页做法应该是每次翻页的时候只从数据库里检索页面大小的块区的数据。这样虽然每次翻页都需要查询数据库，但查询出的记录数很少，网络传输数据量不大，如果使用连接池更可以略过&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2960603.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>数据库连接池的原理机制</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx</link><pubDate>Mon, 26 Mar 2007 13:20:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1541403.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1541403.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1541403</trackback:ping><description>对于共享资源，有一个很著名的设计模式：资源池（Resource  Pool）。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1541403.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>hibernate分页</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx</link><pubDate>Wed, 07 Mar 2007 11:20:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1522974.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1522974.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1522974</trackback:ping><description>分页在任何系统中都是非常头疼的事情，有的数据库在语法上支持分页，而有的数据库则需要使用可滚动游标来实现，并且在不支持可滚动游标的系统上只能使用单向游标逐步接近要取得的数据。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1522974.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>利用java操作Excel文件</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx</link><pubDate>Fri, 02 Mar 2007 12:31:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1519050.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1519050.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1519050</trackback:ping><description>利用java操作Excel文件。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1519050.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>如何使用JavaScript进行可靠的继承调用</title><link>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx</link><pubDate>Thu, 28 Dec 2006 14:21:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1465741.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx#Feedback</comments><slash:comments>24</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1465741.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1465741</trackback:ping><description>几乎每位在开发JavaScript时尝试应用面向对象技术的开发者，或多或少都会问自己一个问题：“如何调用父类（super class）的方法？”&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1465741.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>从JAR和zip档案文件中提取Java 资源</title><link>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx</link><pubDate>Tue, 31 Oct 2006 15:21:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1358595.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1358595.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1358595</trackback:ping><description>将一类 java 资源打包在一个 java archive (jar) 文件中是缩短下载时间、增强安全性和增强可管理性的极好方法。这篇技巧说明如何很容易地从 jar 文件中提取资源以供您自己使用。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1358595.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>Eclipse下实现软件项目的源码管理 </title><link>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx</link><pubDate>Mon, 23 Oct 2006 19:01:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1347034.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1347034.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1347034</trackback:ping><description>CVS很酷，但Subversion更酷。然而，如果你在使用Eclipse进行开发，那么你可能直到近来才能利用Subversion带来的优点。随着Subclipse的发行，Subversion可能会最终在你的Eclipse IDE环境充分发挥其威力而压倒CVS。
&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1347034.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>Eclipse 的字符串分区共享优化机制</title><link>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx</link><pubDate>Mon, 23 Oct 2006 11:09:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1346300.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1346300.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1346300</trackback:ping><description>在 Java/C# 这样基于引用语义处理字符串的语言中，作为不可变对象存在的字符串，如果内容相同，则可以通过某种机制实现重用。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1346300.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>基于JDBC的数据库连接池技术研究与应用</title><link>http://blog.csdn.net/chensheng913/archive/2006/10/17/1338520.aspx</link><pubDate>Tue, 17 Oct 2006 18:52:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/17/1338520.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1338520.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/17/1338520.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1338520.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1338520</trackback:ping><description>本文阐述了使用JDBC访问数据库的技术?讨论了基于连接池技术的数据库连接管理的关键问题并给出了一个实现模型。文章所给出的是连接池管理程序的一种基本模式，为提高系统的整体性能，在此基础上还可以进行很多有意义的扩展。
&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1338520.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>提高JSP应用程序运行速度的七大绝招</title><link>http://blog.csdn.net/chensheng913/archive/2006/09/04/1176416.aspx</link><pubDate>Mon, 04 Sep 2006 17:53:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/09/04/1176416.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1176416.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/09/04/1176416.aspx#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1176416.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1176416</trackback:ping><description>本文的目的是通过对servlet和JSP的一些调优技术来极大地提高你的应用程序的性能，并因此提升整个J2EE应用的性能。通过这些调优技术，你可以发现其实并不是某种技术平台（比如J2EE和.NET之争）决定了你的应用程序的性能，重要是你要对这种平台有一个较为深入的了解，这样你才能从根本上对自己的应用程序做一个优化。 &lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1176416.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>JAVA字符集</title><link>http://blog.csdn.net/chensheng913/archive/2006/08/29/1138170.aspx</link><pubDate>Tue, 29 Aug 2006 17:28:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/08/29/1138170.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1138170.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/08/29/1138170.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1138170.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1138170</trackback:ping><description>本文主要包括以下几个方面：编码基本知识，java，系统软件，url，工具软件等。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1138170.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>Tomcat 服务器server.xml的关键参数配置</title><link>http://blog.csdn.net/chensheng913/archive/2006/08/21/1102983.aspx</link><pubDate>Mon, 21 Aug 2006 16:39:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/08/21/1102983.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1102983.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/08/21/1102983.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1102983.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1102983</trackback:ping><description>Tomcat 服务器server.xml的关键参数配置。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1102983.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>浅谈JSF的生命周期和对ajax处理的影响</title><link>http://blog.csdn.net/chensheng913/archive/2006/08/14/1063087.aspx</link><pubDate>Mon, 14 Aug 2006 17:28:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/08/14/1063087.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1063087.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/08/14/1063087.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1063087.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1063087</trackback:ping><description>JSF一个最重要的特点就是组件化(It is all about components)，组件化的特点决定了其可扩展性强和协议无关性。对一个JSF组件来说，为其定义特定的Render，该该组件将在WML或telnet中可用。
&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1063087.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>JSTL（JSP标准标签库)介绍</title><link>http://blog.csdn.net/chensheng913/archive/2006/07/26/981065.aspx</link><pubDate>Wed, 26 Jul 2006 16:43:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/07/26/981065.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/981065.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/07/26/981065.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/981065.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=981065</trackback:ping><description>JSTL是一个不断完善的开放源代码的JSP标签库，是由apache的jakarta小组来维护的。JSTL只能运行在支持JSP1.2和Servlet2.3规范的容器上，如tomcat 4.x。但是在即将推出的JSP 2.0中是作为标准支持的。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/981065.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>