1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.jms; 27 28 import java.util.ArrayList ; 29 30 import javax.servlet.http.HttpServletRequest ; 31 32 import org.apache.struts.action.ActionErrors; 33 import org.apache.struts.action.ActionForm; 34 import org.apache.struts.action.ActionMapping; 35 36 40 public class TopicForm extends ActionForm { 41 42 44 private String name = null; 45 private int subscriptions; 46 private ArrayList listUsedByEjb = new ArrayList (); 47 48 50 56 57 public void reset(ActionMapping mapping, HttpServletRequest request) { 58 name = null; 59 subscriptions = 0; 60 } 61 62 72 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 73 ActionErrors oErrors = new ActionErrors(); 74 return oErrors; 75 } 76 77 79 public String getName() { 80 return name; 81 } 82 83 public void setName(String name) { 84 this.name = name; 85 } 86 87 public int getSubscriptions() { 88 return subscriptions; 89 } 90 91 public void setSubscriptions(int subscriptions) { 92 this.subscriptions = subscriptions; 93 } 94 95 public ArrayList getListUsedByEjb() { 96 return listUsedByEjb; 97 } 98 99 public void setListUsedByEjb(ArrayList listUsedByEjb) { 100 this.listUsedByEjb = listUsedByEjb; 101 } 102 } 103 | Popular Tags |