📄 wdgform.java
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.1.0/xslt/JavaClass.xslpackage com.a.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;/** * MyEclipse Struts * Creation date: 04-24-2008 * * XDoclet definition: * @struts.form name="wdgForm" */public class WdgForm extends ActionForm { // --------------------------------------------------------- Instance Variables /** pass property */ private String pass; /** name property */ private String name; // --------------------------------------------------------- Methods /** * Method validate * @param mapping * @param request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors error=new ActionErrors(); if(name.equals("")||name==null||name.length()<=2){ error.add("errname",new ActionError("name.error","name")); } if(pass.equals("")||pass.length()<=3||pass==null){ error.add("errpass",new ActionError("pass.error")); } return error; } /** * Method reset * @param mapping * @param request */ public void reset(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub } /** * Returns the pass. * @return String */ public String getPass() { return pass; } /** * Set the pass. * @param pass The pass to set */ public void setPass(String pass) { this.pass = pass; } /** * 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; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -