📄 glyxgform.java
字号:
// Created by Xslt generator for Eclipse.// XSL : not found (java.io.FileNotFoundException: (Bad file descriptor))// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xslpackage struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;import org.apache.struts.action.ActionMessage;/** * GlyxgForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 11-05-2004 * * XDoclet definition: * @struts:form name="glyxgForm" */public class GlyxgForm extends ActionForm { // --------------------------------------------------------- Instance Variables // --------------------------------------------------------- Methods private String rname; public void setrname(String rname) { this.rname=rname; } public String getrname() { return this.rname; } private String pwd1; public void setpwd1(String pwd1) { this.pwd1=pwd1; } public String getpwd1() { return this.pwd1; } private String pwd2; public void setpwd2(String pwd2) { this.pwd2=pwd2; } public String getpwd2() { return this.pwd2; } private String sex; public void setsex(String sex) { this.sex=sex; } public String getsex() { return this.sex; } private String email; public void setemail(String email) { this.email=email; } public String getemail() { return this.email; } private String phone; public void setphone(String phone) { this.phone=phone; } public String getphone() { return this.phone; } /** * Method validate * @param ActionMapping mapping * @param HttpServletRequest request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors=new ActionErrors(); if(pwd1.length()==0) { errors.add("pwd1",new ActionMessage("pwd1.error")); } if(pwd2.length()==0) { errors.add("pwd2",new ActionMessage("pwd2.error")); } if(rname.length()==0) { errors.add("rname",new ActionMessage("rnamername.error")); } if(email.length()==0) { errors.add("email",new ActionMessage("email.error")); } if(phone.length()==0) { errors.add("phone",new ActionMessage("phone.error")); } return errors; //throw new UnsupportedOperationException("Generated method 'validate(...)' not implemented."); } /** * Method reset * @param ActionMapping mapping * @param HttpServletRequest request */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.email=""; this.phone=""; this.pwd1=""; this.pwd2=""; this.rname=""; this.sex=""; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -