?? ordercheckform.java
字號:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.ascent.struts.form;
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: 07-17-2006
*
* XDoclet definition:
*
* @struts.form name="orderCheckForm"
*/
public class OrderCheckForm extends ActionForm {
/*
* Generated fields
*/
/** address property */
private String address;
/** telephone property */
private String telephone;
/** customerName property */
private String customerName;
/** email property */
private String email;
/** post property */
private String post;
/*
* Generated Methods
*/
/**
* Method validate
*
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if (customerName == null || customerName == "") {
errors.add("customerName", new ActionMessage(
"error.customerName.required"));
} else if (telephone == null || telephone == "") {
errors.add("telephone", new ActionMessage(
"error.telephone.required"));
} else if (address == null || address == "") {
errors.add("address", new ActionMessage("error.address.required"));
} else if (post == null || post == "") {
errors.add("post", new ActionMessage("error.post.required"));
} else if (email == null || email == "") {
errors.add("email", new ActionMessage("error.email.required"));
}
return errors;
}
/**
* Method reset
*
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the address.
*
* @return String
*/
public String getAddress() {
return address;
}
/**
* Set the address.
*
* @param address
* The address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* Returns the telephone.
*
* @return String
*/
public String getTelephone() {
return telephone;
}
/**
* Set the telephone.
*
* @param telephone
* The telephone to set
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}
/**
* Returns the customerName.
*
* @return String
*/
public String getCustomerName() {
return customerName;
}
/**
* Set the customerName.
*
* @param customerName
* The customerName to set
*/
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
/**
* Returns the email.
*
* @return String
*/
public String getEmail() {
return email;
}
/**
* Set the email.
*
* @param email
* The email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Returns the post.
*
* @return String
*/
public String getPost() {
return post;
}
/**
* Set the post.
*
* @param post
* The post to set
*/
public void setPost(String post) {
this.post = post;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -