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

📄 zhandian_deletezhandianform.java

📁 java做的 公交车查询系统....毕业设计
💻 JAVA
字号:
//在zhandian.jsp页面中,获取删除表单中数据
package gongjiaochexitong.gongjiaoche.zhandian_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 zhandian_deleteZhanDianForm extends ActionForm{
	private static final long serialVersionUID = 1L;
	private String zhandian_deleted=null;
	
	public zhandian_deleteZhanDianForm(){
		
	}
	
	public void setZhandian_deleted(String zhandian_deleted){
		this.zhandian_deleted=zhandian_deleted;
	}
	
	public String getZhandian_deleted(){
		return zhandian_deleted;
	}
	
	public void reset(ActionMapping mapping,
			HttpServletRequest request) {
			this.zhandian_deleted = null;		
	}
	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
			ActionErrors errors = new ActionErrors();
			
			if (zhandian_deleted == null){
				errors.add(ActionErrors.GLOBAL_MESSAGE,
					new ActionMessage(""));                       
			}		
			
			return errors;
	}

}

⌨️ 快捷键说明

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