| | |
| | | import org.apache.poi.ss.formula.functions.T;
|
| | | import org.apache.struts2.ServletActionContext;
|
| | |
|
| | | import com.fgkj.dto.User;
|
| | |
|
| | | public class FileUtil {
|
| | | private static String filename="用户表.xls";
|
| | |
| | | return is;
|
| | | }
|
| | |
|
| | | public static void WriterFile(List<User> list){
|
| | | /*public static void WriterFile(List<User> list){
|
| | | HSSFWorkbook workbook = new HSSFWorkbook();
|
| | | HSSFSheet sheet = workbook.createSheet("sheet1");
|
| | |
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | |
| | | */
|
| | |
|
| | | public void exportExcel(String title, String[] headers, Collection dataset, String fileName, String pattern, String type)
|
| | | throws FileNotFoundException, IOException {
|