Package org.g4studio.core.web.report.excel

Examples of org.g4studio.core.web.report.excel.ExcelReader


  public ActionForward importExcel(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm actionForm = (BaseActionForm) form;
    FormFile theFile = actionForm.getTheFile();
    String metaData = "xmid,xmmc,xmrj,gg,dw,jx,zfbl,cd,ggsj";
    ExcelReader excelReader = new ExcelReader(metaData, theFile.getInputStream());
    List list = excelReader.read(3, 1);
    super.setSessionAttribute(request, "importExcelList", list);
    setOkTipMsg("导入成功", response);
    return mapping.findForward(null);
  }
View Full Code Here

TOP

Related Classes of org.g4studio.core.web.report.excel.ExcelReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.