?? addfrom.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 + -