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

📄 studentform.java

📁 sql+struts+jsp 提供考试的一般需求
💻 JAVA
字号:
package shixun;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;

public class studentForm extends ActionForm {

    private String address;
    private String brithday;
    private String classname;
    private String name;
    private String nation;
    private String phone;

    private String sex;
    private String speciality;
    private String stuno;
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setStuno(String stuno) {
        this.stuno = stuno;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }



    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public void setBrithday(String brithday) {
        this.brithday = brithday;
    }

    public String getBrithday() {
        return brithday;
    }

    public String getClassname() {
        return classname;
    }

    public String getName() {
        return name;
    }

    public String getNation() {
        return nation;
    }

    public String getPhone() {
        return phone;
    }


    public String getSex() {
        return sex;
    }

    public String getSpeciality() {
        return speciality;
    }

    public String getStuno() {
        return stuno;
    }



    public ActionErrors validate(ActionMapping actionMapping,
                                 HttpServletRequest httpServletRequest) {
        /** @todo: finish this method, this is just the skeleton.*/
        return null;
    }

    public void reset(ActionMapping actionMapping,
                      HttpServletRequest servletRequest) {
        try {
            servletRequest.setCharacterEncoding("gb2312");
        } catch (Exception e) {
            System.out.println("字符编码出错!!");

        }
    }
}

⌨️ 快捷键说明

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