1 25 26 package org.objectweb.jonas.webapp.jonasadmin.security; 27 28 import javax.servlet.http.HttpServletRequest ; 29 30 import org.apache.struts.action.ActionErrors; 31 import org.apache.struts.action.ActionForm; 32 import org.apache.struts.action.ActionMapping; 33 34 37 public class FactoryRealmForm extends ActionForm { 38 39 41 43 private String resource = null; 44 private String action = null; 45 private boolean save = false; 46 private String name = null; 47 48 50 56 57 public void reset(ActionMapping mapping, HttpServletRequest request) { 58 save = false; 59 action = "apply"; 60 } 61 62 73 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 74 ActionErrors oErrors = new ActionErrors(); 75 return oErrors; 76 } 77 78 80 public String getResource() { 81 return resource; 82 } 83 84 public void setResource(String resource) { 85 this.resource = resource; 86 } 87 88 public String getAction() { 89 return action; 90 } 91 92 public void setAction(String action) { 93 this.action = action; 94 } 95 96 public boolean isSave() { 97 return save; 98 } 99 100 public void setSave(boolean save) { 101 this.save = save; 102 } 103 104 public String getName() { 105 return name; 106 } 107 108 public void setName(String name) { 109 this.name = name; 110 } 111 } | Popular Tags |