1 25 26 package net.killingar.forum.actions.user; 27 28 import net.killingar.forum.internal.User; 29 30 public class List extends net.killingar.forum.actions.area.ActionAreaSupport 31 { 32 User[] users; 33 boolean all; 34 35 public User[] getUsers() { return users; } 36 public void setAll(boolean in) { all = in; } 37 38 protected String doExecute() 39 { 40 try 41 { 42 if (all) 43 { 44 users = manager.getUsers(); 45 return SUCCESS; 46 } 47 else 48 return INPUT; 49 } 50 catch (Exception e) 51 { 52 e.printStackTrace(); 53 addErrorMessage("executing "+getClass().toString()+" action failed, exception thrown: "+e.toString()); 54 return ERROR; 55 } 56 } 57 } | Popular Tags |