⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addprojectform.java

📁 1 系统简介 1.1 系统名称:bugtrail 1.2 适用范围:大型或小型公司 1.3 用途:在项目周期内进行项目管理
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package bugtrail.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: 12-25-2006
 * 
 * XDoclet definition:
 * @author Carol-W
 * @struts.form name="addProjectForm"
 */
public class AddProjectForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/*
	 * Generated fields
	 */
	/** proName property */
	private String proName;

	/** description property */
	private String description;

	/*
	 * 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 (this.getProName().length() < 1) {
			errors.add("emptyProName", new ActionError("emptyProName.error"));
		} 
		return errors;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.setProName("");
		this.setDescription("");
		// TODO Auto-generated method stub
	}

	/** 
	 * Returns the proName.
	 * @return String
	 */
	public String getProName() {
		return proName;
	}

	/** 
	 * Set the proName.
	 * @param proName The proName to set
	 */
	public void setProName(String proName) {
		this.proName = proName;
	}

	/** 
	 * Returns the description.
	 * @return String
	 */
	public String getDescription() {
		return description;
	}

	/** 
	 * Set the description.
	 * @param description The description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -