摘要: 《将博客搬至CSDN》 阅读全文
posted @ 2013-12-14 14:29 无尘24 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1、JDK6中文API:http://tool.oschina.net/apidocs/apidoc?api=jdk-zh 阅读全文
posted @ 2013-12-14 14:03 无尘24 阅读(124) 评论(0) 推荐(0) 编辑
摘要: bin/catalina.batrem -------------debug configure---------------------SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999rem -------------debug configure--------------------- 阅读全文
posted @ 2013-03-28 15:31 无尘24 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 目前看到的对XML的处理有2套,一套是使用jdom,另一套是使用dom4jjdom示例:SAXBuilder builder = new SAXBuilder(false);InputStream xmlInput = new FileInputStream("xxx.xml");Document doc = builder.build(xmlInput);Element root = doc.getRootElement();Element addDTSVersion = new Element("VersionA");addDTSVersion.se 阅读全文
posted @ 2013-03-27 10:34 无尘24 阅读(135) 评论(0) 推荐(0) 编辑
摘要: JSONP的实质是通过跨域请求,返回给页面一个结果,这个请求没有js端类似success的回调函数,其功能类似于:<script type="text/javascript" src="XXX"></script>即引入一个字符串,并执行这个字符串,不过好像引入js这种文件的话,不会执行。当然可以通过eval来执行两种实现:Ext.create('Ext.data.Store', {proxy: {type: 'jsonp',extraParams:{"params" : Ext 阅读全文
posted @ 2013-03-26 19:36 无尘24 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 很多时候需要用多线程做处理,但是又不想自己管理线程的启动等管理,最好的办法是委托给现成的线程池来处理。spring提供了线程池,bean配置如下:<bean id="mailTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="corePoolSize" value="3"/> <property name="maxPool 阅读全文
posted @ 2013-03-19 08:56 无尘24 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 使用HSSF,对应的jar包是:poi-3.8-20120326.jar//生成excel文档 HSSFWorkbook wk = new HSSFWorkbook();// 生成工作区 HSSFSheet sheet = wk.createSheet("mysheet");//创建单元格样式对象 wk.createCellStyle()//设置样式 //设置表格数据居中 style.setAlignment(HSSFCellStyle.ALIGN_CENTER); //设置表格数据垂直居中 style.setVerticalAlignment(HSSFCellStyle. 阅读全文
posted @ 2013-03-18 16:06 无尘24 阅读(1950) 评论(0) 推荐(0) 编辑
摘要: 在页面端,参数可以组装成JSON的格式,然后通过Ext.encode(str),变成字符串,作为参数发送请求。如:param = ["a":"123","b":"[4,5,6]"]url:XXX?param=Ext.encode(param);在后台,JSON对象的处理有多个jar可选,我们选择org.json.simple包,包括几个常用的对象:JSONValue :提供将String解析为JSON的能力,如将上述的param参数从request中解析,并转为JSON对象。String param = reque 阅读全文
posted @ 2013-03-18 15:18 无尘24 阅读(2594) 评论(0) 推荐(0) 编辑
摘要: http://www.bcwhy.com/thread-17636-1-1.html 阅读全文
posted @ 2013-03-13 08:50 无尘24 阅读(274) 评论(0) 推荐(0) 编辑
摘要: sitemesh包装工具,提供完整的包装jsp页面的解决方案。有空的时候可以学习下 阅读全文
posted @ 2013-03-07 17:47 无尘24 阅读(105) 评论(0) 推荐(0) 编辑