📄 checi_deletezhandianform.java
字号:
//在checi.jsp页面中,获取删除站点表单中数据
package gongjiaochexitong.gongjiaoche.checi_pkg;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
public class checi_deleteZhanDianForm extends ActionForm{
private static final long serialVersionUID = 1L;
private int checihao=0;
private String journey=null;
private String zhandianming=null;
private int number=1; //因为有些站点在某次行程中可能出现多次(美尔雅),默认值为1
//比如要删除前一个美尔雅,其值为1,表示前面的或者是第1个;要删除后一个美尔雅,其值为2;
public checi_deleteZhanDianForm(){
}
public int getChecihao() {
return checihao;
}
public void setChecihao(int checihao) {
this.checihao = checihao;
}
public String getJourney() {
return journey;
}
public void setJourney(String journey) {
this.journey = journey;
}
public String getZhandianming() {
return zhandianming;
}
public void setZhandianming(String zhandianming) {
this.zhandianming = zhandianming;
}
public int getNumber(){
return number;
}
public void setNumber(int number){
this.number=number;
}
public void reset(ActionMapping mapping,
HttpServletRequest request) {
this.checihao=0;
this.journey=null;
this.zhandianming=null;
this.number=1;
}
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if (checihao == 0 || zhandianming==null
||zhandianming.equals("")){
errors.add(ActionErrors.GLOBAL_MESSAGE,
new ActionMessage(""));
}
return errors;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -