1 21 22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform; 23 24 import javax.servlet.http.HttpServletRequest ; 25 26 import org.apache.struts.action.ActionErrors; 27 import org.apache.struts.action.ActionForm; 28 import org.apache.struts.action.ActionMapping; 29 30 34 35 public final class JoramLocalServerForm extends ActionForm { 36 37 39 private String serverId = null; 40 private String mode = null; 41 private String host = null; 42 private String port = null; 43 44 46 47 public String getServerId() { 48 return serverId; 49 } 50 51 public void setServerId(String serverId) { 52 this.serverId = serverId; 53 } 54 55 public String getMode() { 56 return mode; 57 } 58 59 public void setMode(String mode) { 60 this.mode = mode; 61 } 62 63 public String getHost() { 64 return host; 65 } 66 67 public void setHost(String host) { 68 this.host = host; 69 } 70 71 public String getPort() { 72 return port; 73 } 74 75 public void setPort(String port) { 76 this.port = port; 77 } 78 79 81 87 public void reset(ActionMapping mapping, HttpServletRequest request) { 88 89 serverId = null; 90 mode = null; 91 host = null; 92 port = null; 93 } 94 95 105 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 106 return new ActionErrors(); 107 } 108 109 } 110 | Popular Tags |