📄 zhandianform.java
字号:
//在 main.jsp主页中,进行站点查询时,获取下拉菜单中选择的站点名
package gongjiaochexitong.gongjiaoche.main_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 zhanDianForm extends ActionForm{
private static final long serialVersionUID = 1L;
private String zhandian=null;
public zhanDianForm() {
}
public void setZhandian(String zhandian){
this.zhandian=zhandian;
}
public String getZhandian(){
return zhandian;
}
public void reset(ActionMapping mapping,
HttpServletRequest request) {
this.zhandian = null;
}
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((zhandian == null) || (zhandian.equals(""))){
errors.add(ActionErrors.GLOBAL_MESSAGE,
new ActionMessage(""));
}
return errors;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -