1 25 26 29 package net.killingar.forum.actions.comic; 30 31 import net.killingar.Utils; 32 33 import java.util.Properties ; 34 35 public class Save extends ActionComicsSupport 36 { 37 39 41 43 45 47 49 protected String doExecute() 51 { 52 try 53 { 54 Properties prop = Utils.getProperties(); 55 net.killingar.forum.comics.ComicsSaver.saveAll(comicmgr, new java.io.File ((String )prop.get("net.killingar.forum.actions.comic.Save.path")), (String )prop.get("net.killingar.forum.actions.comic.Save.urlPrefix"), null); 56 } 57 catch (Exception e) 58 { 59 e.printStackTrace(); 60 addErrorMessage("executing "+getClass().toString()+" action failed, exception thrown: "+e.toString()); 61 return ERROR; 62 } 63 64 return SUCCESS; 65 } 66 } 67 | Popular Tags |