最近需要需要项目开发需要从excel导入数据到数据库,于是就开始找开源的java操作excel的框架。貌似比较流行的有jxl和poi两个框架。网上有些对这两个框架比较的文章,但都不是最近的。根据项目需要,下面对jxl和poi读写excel的性能做个比较。jxl:jxl-2.6.12.jarpoi:poi-3.8.jarJXLTestMain.javaJava代码package com.nexusy.excel.jxl;import java.io.File;import java.io.IOException;import java.util.List;import jxl.Cell;impo Read More
posted @ 2012-12-27 14:29 墙头一颗草 Views(1726) Comments(0) Diggs(0) Edit
效果图:代码如下:View Code 1 /** 2 * 二级横菜单,sitemesh通用模版 3 * 主要思想:菜单项点击后,变激活色,经过其他的变背景色 4 * 增加层$("<div></div>") $('div[menuId='+tem1+']') $("div[id^=sk]") $('#'+i) $("div.menu") 代表层的5种方法 5 */ 6 var menustate=""; 7 var substate=" Read More
posted @ 2012-11-21 18:36 墙头一颗草 Views(840) Comments(0) Diggs(0) Edit
http://tech.it168.com/a2011/0628/1210/000001210209_4.shtml/*** <b>function:</b>转Java Map对象到JSON* @author hoojo* @createDate Nov 28, 2010 2:37:35 PM*/@Testpublic void writeMap2JSON() {Map<String, Object> map = new HashMap<String, Object>();map.put("A", bean);bean.set Read More
posted @ 2012-11-16 16:50 墙头一颗草 Views(1589) Comments(0) Diggs(0) Edit
VCodeGenerator.java 1 package util; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Graphics2D; 5 import java.awt.image.BufferedImage; 6 import java.io.FileOutputStream; 7 import java.io.IOException; 8 import java.io.OutputStream; 9 10 import javax.imageio.ImageIO; 11 pu... Read More
posted @ 2012-11-14 10:41 墙头一颗草 Views(442) Comments(0) Diggs(0) Edit
1 html 直接传参 jsp页面 <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %> <mata http-equiv=”content-type” content=”text Read More
posted @ 2012-11-08 17:41 墙头一颗草 Views(216) Comments(0) Diggs(0) Edit
1、用form表单传值,必须写在form中。可以用<s:form onsubmit="return check()" action="action!d.do" mothed="post"><s:hidden name="param" value="q"> textfield password ...获取:ServletActionContext.getRequest().getParameter("param");param 必须加get,set Read More
posted @ 2012-11-07 17:28 墙头一颗草 Views(149) Comments(0) Diggs(0) Edit
ServletAPIJSPAPISpring2.5APIStruts1.3.8APIStruts2.0.11.2APIHibernate3.2.2APIIbatisAPI一个带有例子的API用法1、csdn2、博客园3、ITPUB http://tech.it168.com/4、传智播客 http:... Read More
posted @ 2012-11-07 16:21 墙头一颗草 Views(235) Comments(0) Diggs(0) Edit
1、alert("这是确认消息框");2、function firm(aa){ //jsp-->js if(confirm("你确信要要删除此记录?")) {location.href="whiteAction!del.action?ip="+aa;}}3、var theResponse = window.prompt("欢迎?","请在此输入您的姓名。");4、正则表达式function check(){ //ip验证var pattern=/^(25[0-5]|2[0-4][0-9]| Read More
posted @ 2012-11-02 15:00 墙头一颗草 Views(363) Comments(0) Diggs(0) Edit
黑马程序员 http://edu.csdn.net/java/video.shtml谷歌网盘视频下载:http://dl.vmall.com Read More
posted @ 2012-11-02 13:55 墙头一颗草 Views(129) Comments(0) Diggs(0) Edit
page:本页request:显示完就没用了session:除了显示,等会还要用,如用户登录状态servletcontext:等会还要给别人用。如聊天室 Read More
posted @ 2012-11-02 11:03 墙头一颗草 Views(99) Comments(0) Diggs(0) Edit