📄 huitieform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.zjy.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-06-2007
*
* XDoclet definition:
*
* @struts.form name="huitieForm"
*/
public class HuitieForm extends ActionForm {
/*
* Generated fields
*/private int id;
private String times;
private String yzm;
/** text property */
private String text;
/** name property */
private String name;
private String parentid;
/*
* Generated Methods
*/
/**
* Method validate
*
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors = new ActionErrors();
if (text.length() < 3) {
errors.add("text", new ActionError("textwrong"));
}
return errors;
}
/**
* Method reset
*
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the text.
*
* @return String
*/
public String getText() {
return text;
}
/**
* Set the text.
*
* @param text
* The text to set
*/
public void setText(String text) {
this.text = text;
}
/**
* 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;
}
public void setParentid(String parentid) {
this.parentid = parentid;
}
public String getParentid() {
return parentid;
}
public void setTimes(String times) {
this.times = times;
}
public String getTimes() {
return times;
}
public void setId(int id) {
this.id = id;
}
public int getId() {
return id;
}
public void setYzm(String yzm) {
this.yzm = yzm;
}
public String getYzm() {
return yzm;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -