阅读背景:

如何使用JDBC+Struct2框架的poi读取Excel的数据然后插入Sql Server数据库中

来源:互联网 
Action层
package org.cupd.spdb.report.importexcel.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import org.cupd.spdb.report.importexcel.service.CardBinService;
import org.cupd.spdb.report.importexcel.service.impl.CardBinServiceImpl;

/**
 * 
 * @author 
 * @date 2014-01-21
 * excel数据读取与导入后台管理
 */
public class CardBinAction extends DispatchAction {
	public ActionForward showCardBinPage(ActionMapping mapping, ActionForm actionform,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return mapping.findForward("showCardBinPage");
	}
	
	
private  CardBinService CardBinService=new CardBinServiceImpl();
	
	public int insertCardBin()
	{
		int result=CardBinService.insertDB();
		
		return result;
	}
	package org.cupd.spdb.report.importe



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: