摘要:
${flag } districtTest/districtTest!writeExcel.action" method="post" enctype="multipart/form-data" id="myform"> title:窗口的标题文本 类型:String... 阅读全文
摘要:
<script type="text/javascript"> $(document).ready(function() { $("#myFrm").validate({ submitHandler: function() { form.submit(); }, rules: { "district 阅读全文
摘要:
1 public String writeExcel(){ 2 Workbook book = null; 3 Cell cell =null; 4 try { 5 //打开文件 6 book = Workbook.getWorkbook(file); 7 //获得第一个工作表对象 8 Sheet 阅读全文
摘要:
1 package junit.test; 2 3 import java.io.File; 4 import java.io.IOException; 5 import java.util.ArrayList; 6 import java.util.List; 7 8 import jxl.Cel 阅读全文
摘要:
1 //文件 2 private File file; 3 //文件名称 4 private String fileFileName; 5 private String fileContentType; 6 7 8 /* 9 * 添加方法 10 */ 11 public String distric 阅读全文
摘要:
参数说明: type = "stream",这里的type一定要等于stream; 对params的几个参数的解释: "contentType", "application/octet-stream" : 文件格式; "inputName", "attachstream" :获取文件的方法名;这里的 阅读全文