📄 updateform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.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: 11-06-2008
*
* XDoclet definition:
* @struts.form name="updateForm"
*/
public class UpdateForm extends ActionForm {
/**
*
*/
private static final long serialVersionUID = 1L;
/*
* Generated fields
*/
/** jobType property */
private String jobType;
/** relationInfo property */
private String relationInfo;
/** startDate property */
private String startDate;
/** staffRequire property */
private String staffRequire;
/** staffNum property */
private String staffNum;
/** jobId property */
private String jobId;
/** endDate property */
private String endDate;
/** jobName property */
private String jobName;
/*
* 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(jobType==null)
errors.add("jobType",new ActionMessage("error.jobType.required"));
if(jobName==null)
errors.add("jobName", new ActionMessage("error.jobName.required"));
if(staffNum==null)
errors.add("staffNum", new ActionMessage("error.staffNum.required"));
if(staffRequire==null)
errors.add("staffRequire", new ActionMessage("error.staffRequire.required"));
if(startDate==null)
errors.add("startDate", new ActionMessage("error.Date.required"));
if(endDate==null)
errors.add("endDate", new ActionMessage("error.Date.required"));
if(relationInfo==null)
errors.add("relationInfo", new ActionMessage("error.relationInfo.required"));
return errors;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the jobType.
* @return String
*/
public String getJobType() {
return jobType;
}
/**
* Set the jobType.
* @param jobType The jobType to set
*/
public void setJobType(String jobType) {
this.jobType = jobType;
}
/**
* Returns the relationInfo.
* @return String
*/
public String getRelationInfo() {
return relationInfo;
}
/**
* Set the relationInfo.
* @param relationInfo The relationInfo to set
*/
public void setRelationInfo(String relationInfo) {
this.relationInfo = relationInfo;
}
/**
* Returns the startDate.
* @return String
*/
public String getStartDate() {
return startDate;
}
/**
* Set the startDate.
* @param startDate The startDate to set
*/
public void setStartDate(String startDate) {
this.startDate = startDate;
}
/**
* Returns the staffRequire.
* @return String
*/
public String getStaffRequire() {
return staffRequire;
}
/**
* Set the staffRequire.
* @param staffRequire The staffRequire to set
*/
public void setStaffRequire(String staffRequire) {
this.staffRequire = staffRequire;
}
/**
* Returns the staffNum.
* @return Integer
*/
public String getStaffNum() {
return staffNum;
}
/**
* Set the staffNum.
* @param staffNum The staffNum to set
*/
public void setStaffNum(String staffNum) {
this.staffNum = staffNum;
}
/**
* Returns the jobId.
* @return Integer
*/
public String getJobId() {
return jobId;
}
/**
* Set the jobId.
* @param jobId The jobId to set
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
* Returns the endDate.
* @return String
*/
public String getEndDate() {
return endDate;
}
/**
* Set the endDate.
* @param endDate The endDate to set
*/
public void setEndDate(String endDate) {
this.endDate = endDate;
}
/**
* Returns the jobName.
* @return String
*/
public String getJobName() {
return jobName;
}
/**
* Set the jobName.
* @param jobName The jobName to set
*/
public void setJobName(String jobName) {
this.jobName = jobName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -