Changeset 31964 for other-projects/the-macronizer/trunk
- Timestamp:
- 2017-09-13T16:39:11+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/the-macronizer/trunk/src/java/web/servlets/FileUpload.java
r31962 r31964 29 29 30 30 private File tmpdir; 31 private String inputFile; 32 private String outputFile; 31 33 32 34 //Create an instance of the Logger object created for this class in log4j.properties … … 84 86 request.setAttribute("options", properties.getOptions()); 85 87 forward(address + "/main.jsp", request, response); 86 String outputText= stringFromFile(restoredFile);87 logger.error("Output:"+output Text);88 outputFile = stringFromFile(restoredFile); 89 logger.error("Output:"+outputFile); 88 90 } catch (UnsupportedOperationException e) { 89 91 FileUtil.deleteFile(restoredFile); … … 135 137 requestData.setFile(file); 136 138 requestData.setFilename(item.getName()); 137 String logText=stringFromFile(file);138 logger.error("Input:"+logText);139 inputFile=stringFromFile(file); 140 // logger.error("Input:"+logText); 139 141 } 140 142 } … … 153 155 sb.append(line); 154 156 } 155 return sb.toString();156 157 } 157 158 catch (Exception e){ … … 161 162 reader.close(); 162 163 } 164 return sb.toString(); 163 165 } 164 166
Note:
See TracChangeset
for help on using the changeset viewer.