📄 switchpageform.java
字号:
/* * SwitchPageForm.java * * Created on 2005年3月1日, 上午2:01 */package test.action;import javax.servlet.http.*;import org.apache.struts.action.*;/** * * @author Administrator */public class SwitchPageForm extends ActionForm { /** Creates a new instance of SwitchPageForm */ public SwitchPageForm() { } private String id; public String getId() { return id; } public void setId(String id) { this.id = id; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { //TODO: 要添加Reset按钮所执行的操作 } /** * 验证页面上的数据的有效性 * @param mapping The mapping used to select this instance * @param request The servlet request we are processing * @return ActionErrors */ public ActionErrors validate(ActionMapping mapping, javax.servlet.http.HttpServletRequest request) { //TODO: 这里要增加验证页面上所有输入数据有效性的代码 return null; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -