?? users_editform.java
字號:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.infosys.struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;import org.infosys.logic.GroupList;/** * MyEclipse Struts * Creation date: 08-26-2005 * * XDoclet definition: * @struts:form name="users_editForm" */public class Users_editForm extends ActionForm { // --------------------------------------------------------- Instance Variables /** code property */ private String id; /** sex property */ private String sex; /** passwd property */ private String passwd; /** account property */ private String account; /** email property */ private String email; /** status property */ private Integer status; /** idno property */ private String idno; /** fax property */ private String fax; /** tel property */ private String tel; /** name property */ private String name; /** idtype property */ private String idtype; /** groupid property */ private String groupid; /** action property */ private String action; // --------------------------------------------------------- Methods /** * Method validate * @param mapping * @param request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { if(action!=null && action.equalsIgnoreCase("save")){ ActionErrors errors=new ActionErrors(); if((account==null)||(account.length()<1)){ errors.add("account",new ActionError("tips.this.isNull")); } if((passwd==null)||(passwd.length()<1)){ errors.add("passwd",new ActionError("tips.this.isNull")); } if((name==null)||(name.length()<1)){ errors.add("name",new ActionError("tips.this.isNull")); } request.setAttribute("GroupList",new GroupList()); return errors; }else{ return null; } } /** * Method reset * @param mapping * @param request */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.account=null; this.email=null; this.fax=null; this.groupid=null; this.idno=null; this.idtype=null; this.name=null; this.passwd=null; this.sex="男"; this.status=new Integer(1); this.tel=null; } /** * Returns the sex. * @return String */ public String getSex() { return sex; } /** * Set the sex. * @param sex The sex to set */ public void setSex(String sex) { this.sex = sex; } /** * Returns the passwd. * @return String */ public String getPasswd() { return passwd; } /** * Set the passwd. * @param passwd The passwd to set */ public void setPasswd(String passwd) { this.passwd = passwd; } /** * Returns the account. * @return String */ public String getAccount() { return account; } /** * Set the account. * @param account The account to set */ public void setAccount(String account) { this.account = account; } /** * Returns the email. * @return String */ public String getEmail() { return email; } /** * Set the email. * @param email The email to set */ public void setEmail(String email) { this.email = email; } /** * Returns the status. * @return Integer */ public Integer getStatus() { return status; } /** * Set the status. * @param status The status to set */ public void setStatus(Integer status) { this.status = status; } /** * Returns the idno. * @return String */ public String getIdno() { return idno; } /** * Set the idno. * @param idno The idno to set */ public void setIdno(String idno) { this.idno = idno; } /** * Returns the fax. * @return String */ public String getFax() { return fax; } /** * Set the fax. * @param fax The fax to set */ public void setFax(String fax) { this.fax = fax; } /** * Returns the tel. * @return String */ public String getTel() { return tel; } /** * Set the tel. * @param tel The tel to set */ public void setTel(String tel) { this.tel = tel; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Set the name. * @param name The name to set */ public void setName(String name) { this.name = name; } /** * @return 返回 groupid。 */ public String getGroupid() { return groupid; } /** * @param groupid 要設置的 groupid。 */ public void setGroupid(String groupid) { this.groupid = groupid; } /** * @return 返回 idtype。 */ public String getIdtype() { return idtype; } /** * @param idtype 要設置的 idtype。 */ public void setIdtype(String idtype) { this.idtype = idtype; } /** * @return 返回 action。 */ public String getAction() { return action; } /** * @param action 要設置的 action。 */ public void setAction(String action) { this.action = action; } /** * @return 返回 id。 */ public String getId() { return id; } /** * @param id 要設置的 id。 */ public void setId(String id) { this.id = id; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -