1 16 17 package org.apache.webapp.admin.resources; 18 19 20 import javax.management.ObjectName ; 21 import javax.servlet.http.HttpServletRequest ; 22 import org.apache.struts.action.ActionError; 23 import org.apache.struts.action.ActionErrors; 24 import org.apache.struts.action.ActionForm; 25 import org.apache.struts.action.ActionMapping; 26 27 28 35 36 public class BaseForm extends ActionForm { 37 38 39 41 42 44 47 private String nodeLabel = null; 48 49 public String getNodeLabel() { 50 return (this.nodeLabel); 51 } 52 53 public void setNodeLabel(String nodeLabel) { 54 this.nodeLabel = nodeLabel; 55 } 56 57 58 62 private String objectName = null; 63 64 public String getObjectName() { 65 return (this.objectName); 66 } 67 68 public void setObjectName(String objectName) { 69 if ((objectName != null) && (objectName.length() < 1)) { 70 this.objectName = null; 71 } else { 72 this.objectName = objectName; 73 } 74 } 75 76 77 79 85 public void reset(ActionMapping mapping, HttpServletRequest request) { 86 87 nodeLabel = null; 88 objectName = null; 89 90 } 91 92 93 } 94 | Popular Tags |