• JSP嵌入一个或多个Flex

    JSP嵌入一个或多个Flex例子 需要使用到FlexModule_j2ee

    3
    124
    19.28MB
    2012-04-10
    9
  • java导出Excel用的jxl.jar

    简单用法: private void exportExcel(String filepathStr){ WritableWorkbook book = null; try { //open file. book = Workbook.createWorkbook(new File&#40;filepathStr&#41;); //create Sheet named "Sheet_1". 0 means this is 1st page. WritableSheet sheet = book.createSheet("Sheet_1", 0); //define cell column and row in Label Constructor, and cell content write "test". //cell is 1st-Column,1st-Row. value is "test" //标题 for(int i = 0;i<tableTitle.length;i++){ Label label = new Label(i, 0, tableTitle[i]); sheet.addCell(label); } //数据 for(int row = 0;row<logInfolist.size();row++){ for(int column = 0;column<tableTitle.length;column++){ String value = tableModel.getValueAt(row, column).toString(); Label label = new Label(column, row, value); sheet.addCell(label); } } book.write(); JOptionPane.showMessageDialog(this, "保存OK!"); } catch (Exception e) { JOptionPane.showMessageDialog(this, "保存失败!"); //e.printStackTrace(); } finally{ if(book!=null){ try { book.close(); } catch (Exception e) { e.printStackTrace(); } } } }

    5
    38
    1.82MB
    2012-03-19
    3
关注 私信
上传资源赚积分or赚钱