switchpageform.java

来自「软件开发过程通常包括五个阶段:分析、设计、编码、测试和发布。如果在Web应用开发」· Java 代码 · 共 55 行

JAVA
55
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?