| | |
| | | if (!new Integer(1).equals(page)) { |
| | | this.name = name + "_" + page; |
| | | } |
| | | } else { |
| | | |
| | | } else if ("search".equals(templateType)){ |
| | | Object templateName = system.get("templateName"); |
| | | if (templateName != null) { |
| | | this.name = String.valueOf(templateName); |
| | | } else { |
| | | this.name = "search"; |
| | | } |
| | | } else if ("message".equals(templateType)) { |
| | | Object templateName = system.get("templateName"); |
| | | if (templateName != null) { |
| | | this.name = String.valueOf(templateName); |
| | | } else { |
| | | this.name = "message"; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | file.mkdirs(); |
| | | } |
| | | |
| | | FileOutputStream outputStream = new FileOutputStream(path +this.name + suffix); |
| | | FileOutputStream outputStream = new FileOutputStream(path + this.name + suffix); |
| | | outputStream.write(html.getBytes()); |
| | | outputStream.close(); |
| | | } catch (IOException e) { |