摘要: 先说一下java工程下目录的获取的几种方法,有用的看客可以看一下:1.new File("relative path").getAbsolutePath();2.System.getProperties.getProperty("user.dir");然后进入主题javaweb中servlet中:request.getSession().getServletContext().getRealPath();获取跟目录(例:C:\apache-tomcat-6.0.35\webapps\webTest)Struts的aciontion中ServletActi 阅读全文
posted @ 2013-03-06 17:05 panlovestan 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 用数据说话:同样的环境下测试4次//省时分页select * from(select a.*,rownum rn from (select * from cfma_dms_report) a where rownum<40) where rn>20 耗时:22.4 27.3 22.0 23.2//耗时分select * from(select a.*,rownum rn from (select * from cfma_dms_report) a ) where rn between 20 and 40 耗时: 36.09 27.25 28.3 32.1 阅读全文
posted @ 2013-03-06 16:21 panlovestan 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 由于<input type="file">的value属性石只读的,所以要取消选择只能通过其他途径,此处有2种方法JS代码 <input type="file" id="fileupload" name="file" /> 第一种: (display:none时不能用) var obj = document.getElementById('fileupload') ; obj.select(); document.execCommand("delete") 阅读全文
posted @ 2013-03-06 14:41 panlovestan 阅读(1481) 评论(0) 推荐(0) 编辑