1 7 package org.ejtools.jndi.browser.web.form; 8 9 import javax.servlet.http.HttpServletRequest ; 10 11 import org.apache.struts.action.ActionErrors; 12 import org.apache.struts.action.ActionForm; 13 import org.apache.struts.action.ActionMapping; 14 15 23 public class ViewForm extends ActionForm 24 { 25 26 protected String name = null; 27 28 protected String type = null; 29 30 31 32 public ViewForm() { } 33 34 35 40 public String getName() 41 { 42 return name; 43 } 44 45 46 51 public String getType() 52 { 53 return type; 54 } 55 56 57 63 public void reset(ActionMapping mapping, HttpServletRequest request) { } 64 65 66 71 public void setName(String name) 72 { 73 this.name = name; 74 } 75 76 77 82 public void setType(String type) 83 { 84 this.type = type; 85 } 86 87 88 95 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) 96 { 97 return new ActionErrors(); 98 } 99 } 100 101 | Popular Tags |