Example #1
0
  public void onSuccessFromUploadFile() {

    File tempFile = new File(System.getProperty("user.dir"), file.getFileName());

    file.write(tempFile);

    tempFile = new File(System.getProperty("user.dir"), file2.getFileName());
    file2.write(tempFile);
  }
Example #2
0
 @CommitAfter
 public void onSuccess() {
   File copied = new File(worksheetDirectory + file.getFileName());
   file.write(copied);
   bib.setWorksheet(file.getFileName());
   bib.setWorksheetExists(true);
   session.saveOrUpdate(bib);
   message = "Done.  Uploaded : " + file.getFileName() + " in BIB: " + bib.getName();
 }