Changeset 31964


Ignore:
Timestamp:
2017-09-13T16:39:11+12:00 (7 years ago)
Author:
rmw36
Message:

Some fixes to get FileUpload compiling again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/src/java/web/servlets/FileUpload.java

    r31962 r31964  
    2929
    3030    private File tmpdir;
     31    private String inputFile;
     32    private String outputFile;
    3133
    3234    //Create an instance of the Logger object created for this class in log4j.properties           
     
    8486            request.setAttribute("options", properties.getOptions());
    8587            forward(address + "/main.jsp", request, response);
    86         String outputText = stringFromFile(restoredFile);
    87         logger.error("Output:"+outputText);
     88        outputFile = stringFromFile(restoredFile);
     89        logger.error("Output:"+outputFile);
    8890        } catch (UnsupportedOperationException e) {
    8991            FileUtil.deleteFile(restoredFile);
     
    135137                    requestData.setFile(file);
    136138                    requestData.setFilename(item.getName());
    137             String logText=stringFromFile(file);
    138             logger.error("Input:"+logText);
     139            inputFile=stringFromFile(file);
     140            // logger.error("Input:"+logText);
    139141                }
    140142            }
     
    153155        sb.append(line);
    154156        }
    155         return sb.toString();
    156157    }
    157158    catch (Exception e){
     
    161162        reader.close();
    162163    }
     164        return sb.toString();
    163165    }
    164166   
Note: See TracChangeset for help on using the changeset viewer.