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

📄 addfrom.java

📁 煤矿安全实时监控系统 主要功能是信息发布
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package guestbook;

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;

/** 
 * MyEclipse Struts
 * Creation date: 05-23-2008
 * 
 * XDoclet definition:
 * @struts.form name="addFrom"
 */
public class AddFrom extends ActionForm {
	/*
	 * Generated fields
	 */

	/** content property */
	private String content;

	/** usertitle property */
	private String usertitle;

	/** mail property */
	private String mail;

	/** qq property */
	private String qq;

	/** name property */
	private String name;

	/** face property */
	private String face;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		if(name.equals(""))
		{
			errors.add("name",new ActionMessage("name"));
		}
		if(mail.equals(""))
		{
			errors.add("mail",new ActionMessage("mail"));
		}
		return errors;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	/** 
	 * Returns the content.
	 * @return String
	 */
	public String getContent() {
		return content;
	}

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

	/** 
	 * Returns the usertitle.
	 * @return String
	 */
	public String getUsertitle() {
		return usertitle;
	}

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

	/** 
	 * Returns the mail.
	 * @return String
	 */
	public String getMail() {
		return mail;
	}

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

	/** 
	 * Returns the qq.
	 * @return String
	 */
	public String getQq() {
		return qq;
	}

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

	/** 
	 * 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;
	}

	/** 
	 * Returns the face.
	 * @return String
	 */
	public String getFace() {
		return face;
	}

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

⌨️ 快捷键说明

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