📄 adteacherform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.form;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import allBeans.Teachers;
import allDAOFactory.ITeacherDAO;
/**
* MyEclipse Struts
* Creation date: 07-22-2008
*
* XDoclet definition:
* @struts.form name="adteacherForm"
*/
public class AdteacherForm extends ActionForm {
/*
* Generated fields
*/
/** th_sex property */
private String th_sex;
/** th_name property */
private String th_name;
/** th_id property */
private String th_id;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
try
{
request.setCharacterEncoding("GBK");
}
catch (UnsupportedEncodingException ex)
{}
}
/**
* Returns the th_sex.
* @return String
*/
public String getTh_sex() {
return th_sex;
}
/**
* Set the th_sex.
* @param th_sex The th_sex to set
*/
public void setTh_sex(String th_sex) {
this.th_sex = th_sex;
}
/**
* Returns the th_name.
* @return String
*/
public String getTh_name() {
return th_name;
}
/**
* Set the th_name.
* @param th_name The th_name to set
*/
public void setTh_name(String th_name) {
this.th_name = th_name;
}
/**
* Returns the th_id.
* @return String
*/
public String getTh_id() {
return th_id;
}
/**
* Set the th_id.
* @param th_id The th_id to set
*/
public void setTh_id(String th_id) {
this.th_id = th_id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -