1 25 26 29 package net.killingar.forum.actions.poll; 30 31 import net.killingar.forum.internal.Poll; 32 import net.killingar.forum.internal.managers.TimeManager; 33 34 public class List extends ActionPollsSupport 35 { 36 Poll[] polls; 38 39 41 43 45 47 public Poll[] getPolls() { return polls; } 49 50 protected String doExecute() 52 { 53 try 54 { 55 polls = pollmgr.getPolls(); 56 57 timemgr.setUserTime(TimeManager.systemPolls); 58 } 59 catch (Exception e) 60 { 61 e.printStackTrace(); 62 addErrorMessage("executing "+getClass().toString()+" action failed, exception thrown: "+e.toString()); 63 return ERROR; 64 } 65 66 return SUCCESS; 67 } 68 } 69 | Popular Tags |