<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[applepop的专栏]]></title><description><![CDATA[~~~~~~~~I am applepop~~~~~~~~]]></description><link>https://blog.csdn.net/applepop</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; applepop]]></copyright><item><title><![CDATA[List自定义排序  让Collections.sort 排序支持对象属性]]></title><link>https://blog.csdn.net/applepop/article/details/7290860</link><guid>https://blog.csdn.net/applepop/article/details/7290860</guid><author>applepop</author><pubDate>Fri, 24 Feb 2012 15:06:18 +0800</pubDate><description><![CDATA[import java.lang.reflect.Method;  
import java.text.SimpleDateFormat;  
import java.util.*;  
  
public class ListComparator implements Comparator {  
  
    public ListComparator() {}  
  
    public]]></description><category></category></item><item><title><![CDATA[apache2.2 + mod_jk + tomcat6 实现apache代理tomcat]]></title><link>https://blog.csdn.net/applepop/article/details/7057422</link><guid>https://blog.csdn.net/applepop/article/details/7057422</guid><author>applepop</author><pubDate>Fri, 09 Dec 2011 16:01:50 +0800</pubDate><description><![CDATA[一、安装apache、tomcat，下载mod_jk
二、修改apache配置文件
在httpd.conf文件的末尾添加如下内容：

# module mod_jk config file
Include conf/extra/mod_jk.conf
在Apache2.2\conf\extra\目录下新建文件：mod_jk.conf，内容如下：


#load module mod]]></description><category></category></item><item><title><![CDATA[IE6 Form submit 不提交的解决方案]]></title><link>https://blog.csdn.net/applepop/article/details/6372717</link><guid>https://blog.csdn.net/applepop/article/details/6372717</guid><author>applepop</author><pubDate>Fri, 29 Apr 2011 18:51:00 +0800</pubDate><description><![CDATA[今天碰到一个很有趣的问题。
用From向提交数据，一是用按钮，一是通过JavaScript脚本：formElement.submit()。不管哪种方法都是很简单的。但是今天我就在这个简单的地方遇到了麻烦。

我正在做的页面是用JavaScript准备数据填写Form然后提交。然而，在IE6下通过JavaScript提交数据时页面没有反应（也没有提示）！？奇怪的是，在FireFox/Opera]]></description><category></category></item><item><title><![CDATA[代码分析工具 findbugs]]></title><link>https://blog.csdn.net/applepop/article/details/6283072</link><guid>https://blog.csdn.net/applepop/article/details/6283072</guid><author>applepop</author><pubDate>Mon, 28 Mar 2011 11:24:00 +0800</pubDate><description><![CDATA[findbugs是一个开源的eclipse代码检查工具；它可以简单高效全面地帮助我们发现程序代码中存在的bug，badsmell，以及潜在隐患。针对各种问题，它并且提供了简单的修改意见供我们重构时进行参考； 通过使用它，可以一定程度上降低我们codereview的工作量，并且会提高review效率。通过findbugs找到bug，再由我们自己重构代码，可以培养我们的编码意识及水平，形成好的习惯提高]]></description><category></category></item><item><title><![CDATA[在eclipse中为xml文件编辑添加代码提示]]></title><link>https://blog.csdn.net/applepop/article/details/6278047</link><guid>https://blog.csdn.net/applepop/article/details/6278047</guid><author>applepop</author><pubDate>Fri, 25 Mar 2011 15:53:00 +0800</pubDate><description><![CDATA[这个对于很多xml格式的配置文件编辑很有帮助，以spring配置文件为例：

进入：window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog

选择：选中“User Specified Entries”，点击“Add...”按钮

填入：

location: 选择本地文件系统上spring-beans]]></description><category></category></item><item><title><![CDATA[Hibernate 中 formula的 应用]]></title><link>https://blog.csdn.net/applepop/article/details/6277935</link><guid>https://blog.csdn.net/applepop/article/details/6277935</guid><author>applepop</author><pubDate>Fri, 25 Mar 2011 15:21:00 +0800</pubDate><description><![CDATA[这个是一个非常好用而且非常实用的属性。
     如果你希望查询一些数据库中没有的此列的数据,如：截取字符串，或链接字符串或者一些求值函数(sum,average,max)等等。你可以不需要像以往在程序里做了，在配置文件里我们可以直接完成这些操作。
 
     我的数据库里有三个字段  uId(主键),uFirst(字段一),uSecond(字段二)
 
     我的POJO
pu]]></description><category></category></item><item><title><![CDATA[spring加载jar包中的hbm]]></title><link>https://blog.csdn.net/applepop/article/details/6274283</link><guid>https://blog.csdn.net/applepop/article/details/6274283</guid><author>applepop</author><pubDate>Thu, 24 Mar 2011 15:50:00 +0800</pubDate><description><![CDATA[classpath:/hbm
			
		 
当hbm文件被打成jar包时，上面的方法就不能用了。幸亏org.springframework.orm.hibernate3.LocalSessionFactoryBean还有mappingJarLocations属性。
改为下面的配置就好了

            
                WEB-INF/lib/test.jar]]></description><category></category></item><item><title><![CDATA[Struts2中namespace的用法 ]]></title><link>https://blog.csdn.net/applepop/article/details/6273486</link><guid>https://blog.csdn.net/applepop/article/details/6273486</guid><author>applepop</author><pubDate>Thu, 24 Mar 2011 11:03:00 +0800</pubDate><description><![CDATA[<br /> Struts2中关于Action的namespace在很多地方出现，如struts.xml、form标签等等，有些莫名其妙的错误就是由于 namespace设置错误造成的。如无法找到匹配的Action，访问不了result指定的页面等等。
<br />     namespace的作用是定义访问Action的url，在不同的namespace中可以定义同名的action，不同的包可以共享同一个 namespace，可以通过namespace控制action的访问。<br />     
在]]></description><category></category></item><item><title><![CDATA[安全检测Java Web应用网站漏洞]]></title><link>https://blog.csdn.net/applepop/article/details/6267571</link><guid>https://blog.csdn.net/applepop/article/details/6267571</guid><author>applepop</author><pubDate>Tue, 22 Mar 2011 13:03:00 +0800</pubDate><description><![CDATA[<br />web开发应用程序(网站)，是目前应用最广泛的程序。但是开发者的水平参差不齐，导致了各种各样web漏洞的出现。本文站在分层架构的角度，分析一下如何在java web程序中找到可能出现的种种漏洞。
<br />　　本文讨论的只是web程序上的漏洞，和其它漏洞，是相对独立的。这句话看似废话，实际上却说明了时常被忽略的因素，即：“很多人认为只要我开发web程序没有漏洞，web服务器
就
安全了”，事实上，并非如此。一个合格的web程序开发人员，应该时刻清楚自己开发的程序会在什么环境中被使用，以及]]></description><category></category></item><item><title><![CDATA[Struts2框架安全缺陷]]></title><link>https://blog.csdn.net/applepop/article/details/6267548</link><guid>https://blog.csdn.net/applepop/article/details/6267548</guid><author>applepop</author><pubDate>Tue, 22 Mar 2011 12:59:00 +0800</pubDate><description><![CDATA[当前java开发网站，通常不会是纯JSP的，大都使用了java framework。
  有了这些framework，让开发人员更加快速的开发出代码，也让代码非常具有可扩展性，那些分层架构的思想，
更是深入人心。这些也大大影响了安全代码审核，曾提出“分层审核代码”的思想，比如在DAO层专门检查
sql注入，在view层检查xss等。这些框架都有自己的层级，本次文章主要讲的是struts这个框]]></description><category></category></item><item><title><![CDATA[SSH ehcache二级缓存配置]]></title><link>https://blog.csdn.net/applepop/article/details/6265616</link><guid>https://blog.csdn.net/applepop/article/details/6265616</guid><author>applepop</author><pubDate>Mon, 21 Mar 2011 17:56:00 +0800</pubDate><description><![CDATA[1、首先设置EhCache，导入ehcache.jar，建立配置文件ehcache.xml，默认的位置在class-path，可以放到你的src目录下：
＜?xml version="1.0" encoding="UTF-8"?＞
＜ehcache＞
　＜diskStore path="java.io.tmpdir"/＞
　　＜defaultCache
　　　maxElementsInMemor]]></description><category></category></item><item><title><![CDATA[struts2 分页 序号]]></title><link>https://blog.csdn.net/applepop/article/details/6265529</link><guid>https://blog.csdn.net/applepop/article/details/6265529</guid><author>applepop</author><pubDate>Mon, 21 Mar 2011 17:39:00 +0800</pubDate><description><![CDATA[1：#status
.odd 是否奇数行

2：#status
.count 当前行数

3：#status
.index
  当前行的序号，从0开始『#status
.count=#status
.index
+1』

4：#status
.first 是否第一行

5：#status
.last 是否最后一行

6：#status
.modules(in]]></description><category></category></item><item><title><![CDATA[Struts2中struts-default.xml、struts.xml 及struts.properties详解]]></title><link>https://blog.csdn.net/applepop/article/details/6248287</link><guid>https://blog.csdn.net/applepop/article/details/6248287</guid><author>applepop</author><pubDate>Mon, 14 Mar 2011 14:45:00 +0800</pubDate><description><![CDATA[Struts2中struts-default.xml、struts.xml 及struts.properties详解
1） struts-default.xml
该文件位于struts2-core-2.1.8.1.jar包内，是struts2框架默认加载的配置文件。它定义struts2一些核心的bean和拦截器。 
 

    "-//Apache Software Foundatio]]></description><category></category></item><item><title><![CDATA[ArrayList深拷贝的一种实现方法]]></title><link>https://blog.csdn.net/applepop/article/details/5702432</link><guid>https://blog.csdn.net/applepop/article/details/5702432</guid><author>applepop</author><pubDate>Tue, 29 Jun 2010 17:32:00 +0800</pubDate><description><![CDATA[原帖地址：http://suihr.javaeye.com/blog/469616
 

大家应该理解浅拷贝和深拷贝的区别：
浅拷贝：被复制对象的任何变量都含有和原来的对象相同的值，而任何的对其他对象的引用仍然指向原来的对象。对拷贝后的引用的修改，还能影响原来的对象。
深拷贝：把要复制的对象所引用的对象都复制了一遍，对现在对象的修改不会影响原有的对象。
如果大家还不理解，在网上看到一个]]></description><category></category></item><item><title><![CDATA[Java的深拷贝和浅拷贝]]></title><link>https://blog.csdn.net/applepop/article/details/5702146</link><guid>https://blog.csdn.net/applepop/article/details/5702146</guid><author>applepop</author><pubDate>Tue, 29 Jun 2010 16:09:00 +0800</pubDate><description><![CDATA[原文链接：http://blog.csdn.net/sheismylife/archive/2009/09/19/4570121.aspx
 
熟悉C++的朋友对这个话题应该很熟悉，浅拷贝就是指两个对象共同拥有同一个值，一个对象改变了该值，也会影响到另一个对象。深拷贝就是两个对象的值相等，但是互相独立。本来想把以前写的一篇文章扩充一下，没想到居然牵扯出很多复杂的问题。本文测试环境是window]]></description><category></category></item><item><title><![CDATA[随笔]]></title><link>https://blog.csdn.net/applepop/article/details/5687272</link><guid>https://blog.csdn.net/applepop/article/details/5687272</guid><author>applepop</author><pubDate>Tue, 22 Jun 2010 18:51:00 +0800</pubDate><description><![CDATA[创业半年多了，发现自己好久没将自己遇到的新技术点整理归纳到这里来了。回头想想，是不是自己有点急功近利，或者是太忙忘记了，这些或许都能成为最近没有整理、总结的理由。每次攻克一个技术点的时候，会让人无比的喜悦和满足，但是知识需要积累和沉淀，不能用完了就忘记了，俗话说好脑子不如烂笔头。所以我们在工作中应该把遇到的技术点和问题总结、归纳记录下来，经常的温故知新，这样我们才能进步，才能成长！]]></description><category></category></item><item><title><![CDATA[转化字符串表达式为数学公式并算出结果]]></title><link>https://blog.csdn.net/applepop/article/details/4862986</link><guid>https://blog.csdn.net/applepop/article/details/4862986</guid><author>applepop</author><pubDate>Tue, 24 Nov 2009 13:00:00 +0800</pubDate><description><![CDATA[/*
 * FormulaCalculator.java
 *
 * Created on 2007年9月18日, 上午11:40
 * @title 转化字符串表达式为数学公式并算出结果
 * @description 转化字符串表达式为数学公式并算出结果
 * 注意:为了区分负号，这边使用#代替减号
 * 使用方法:
 * FormulaCalculator calculato]]></description><category></category></item><item><title><![CDATA[DOCTYPE声明对JS获取窗口宽度和高度的影响]]></title><link>https://blog.csdn.net/applepop/article/details/4777435</link><guid>https://blog.csdn.net/applepop/article/details/4777435</guid><author>applepop</author><pubDate>Fri, 06 Nov 2009 17:37:00 +0800</pubDate><description><![CDATA[摘注】：以下说法不准确，不是有没有DOCTYPE声明，而是不同的DOCTYPE声明对js的处理有影响。
在没有DOCTYPE声明的情况下:
document.body.clientWidth
document.body.clientHeight
为当前窗口的宽度/高度;
在DOCTYPE声明以后
document.body.clientWidth
document.body.clie]]></description><category></category></item><item><title><![CDATA[轻松设置就能使MyEclipse具有代码提示功能]]></title><link>https://blog.csdn.net/applepop/article/details/3427355</link><guid>https://blog.csdn.net/applepop/article/details/3427355</guid><author>applepop</author><pubDate>Tue, 02 Dec 2008 11:16:00 +0800</pubDate><description><![CDATA[一般默认情况下，Eclipse ，MyEclipse 的代码提示功能是比Microsoft Visual Studio的差很多的 

，主要是Eclipse ，MyEclipse本身有很多选项是默认关闭的，要开发者自己去手动配置。如果开发者不 

清楚的话，就不知道Eclipse ，MyEclipse的代码提示功能一样能像Microsoft Visual Studio的代码提 

示功]]></description><category></category></item><item><title><![CDATA[webwork+spring+hibernate整合]]></title><link>https://blog.csdn.net/applepop/article/details/3219068</link><guid>https://blog.csdn.net/applepop/article/details/3219068</guid><author>applepop</author><pubDate>Tue, 04 Nov 2008 15:10:00 +0800</pubDate><description><![CDATA[1、webwork、spring的集成
  (1)、开启spring的集成：
         首先将最新的spring的jar加到classpath中，然后在src目录下建立webwork.properties文件，文件只包含下面的内容
        webwork.objectFactory=spring
         这种情况下,所有的对象都至少会试图使用Spring来创建.如]]></description><category></category></item></channel></rss>