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