String dirPath = request.getSession().getServletContext().getRealPath("/template/html");
File path = new File(dirPath);
if(!path.exists()) path.mkdirs();
//生成的文件的名字
String indexFileName = id+".html";
//判断是否已经存在该html文件,存在了就直接访问html ,不存在生成html文件
String[] indexfileList = path.list(new DirectoryFilter(indexFileName));