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

📄 office_membermodifyform.java

📁 这个程序是花了好几十万请人开发的
💻 JAVA
字号:
/* *  * @author 郑文金 * * 这个form用于在"网上办公室"中修改个人信息 * */package struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;import javabean.*;public class Office_membermodifyForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** DEPNAME property */	private String COMPANY;	/** SEX property */	private String SEX;	/** USER_OFFICEPH property */	private String USER_OFFICEPH;	/** EMAIL property */	private String EMAIL;	/** USER_PROVINCE property */	private String USER_PROVINCE;	/** USER_CITY property */	private String USER_CITY;	/** QUESTION property */	private String QUESTION;	/** USER_POST_CODE property */	private String USER_POST_CODE;	/** USER_ADDRESS property */	private String USER_ADDRESS;	/** ANSWER property */	private String ANSWER;	/** USER_HOMEPH property */	private String USER_HOMEPH;	/** WWW property */	private String HOMEPAGE;	/** RNAME property */	private String RNAME;	/** USER_MOBILEPH property */	private String USER_MOBILEPH;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) 	{		Check check=new Check();		ActionErrors errors=new ActionErrors();		if(RNAME.equals(""))			errors.add("rname",new ActionError("office_rname.error"));					if(USER_ADDRESS.equals(""))			errors.add("User_address",new ActionError("office_User_address.error"));									if(ANSWER.equals(""))			errors.add("ANSWER",new ActionError("office_ANSWER.error"));								if(QUESTION.equals(""))			errors.add("QUESTION",new ActionError("office_QUESTION.error"));					Fenxi fx=new Fenxi();		int n=fx.fenxiEmail(EMAIL);		if(n!=3)			errors.add("Email",new ActionError("office_Email.error"));								if(COMPANY.equals(""))			errors.add("COMPANY",new ActionError("office_COMPANY.error"));		String msg2=check.numberchecked(USER_POST_CODE);		if(msg2.equals("false")||USER_POST_CODE.length()<6)			errors.add("postcode",new ActionError("office_postcode.error"));		return errors;	}	/** 	 * Method reset	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		COMPANY = "";		SEX = "";		USER_OFFICEPH = "";		EMAIL = "";		USER_PROVINCE = "";		USER_CITY = "";		QUESTION = "";		USER_POST_CODE = "";		USER_ADDRESS = "";		ANSWER = "";		USER_HOMEPH = "";		HOMEPAGE= "";		RNAME = "";		USER_MOBILEPH = "";	}	/** 	 * Returns the DEPNAME.	 * @return String	 */	public String getCOMPANY() {		return COMPANY;	}	/** 	 * Set the DEPNAME.	 * @param DEPNAME The DEPNAME to set	 */	public void setCOMPANY(String COMPANY) {		this.COMPANY =COMPANY;	}	/** 	 * Returns the SEX.	 * @return String	 */	public String getSEX() {		return SEX;	}	/** 	 * Set the SEX.	 * @param SEX The SEX to set	 */	public void setSEX(String SEX) {		this.SEX = SEX;	}	/** 	 * Returns the USER_OFFICEPH.	 * @return String	 */	public String getUSER_OFFICEPH() {		return USER_OFFICEPH;	}	/** 	 * Set the USER_OFFICEPH.	 * @param USER_OFFICEPH The USER_OFFICEPH to set	 */	public void setUSER_OFFICEPH(String USER_OFFICEPH) {		this.USER_OFFICEPH = USER_OFFICEPH;	}	/** 	 * Returns the EMAIL.	 * @return String	 */	public String getEMAIL() {		return EMAIL;	}	/** 	 * Set the EMAIL.	 * @param EMAIL The EMAIL to set	 */	public void setEMAIL(String EMAIL) {		this.EMAIL = EMAIL;	}	/** 	 * Returns the USER_PROVINCE.	 * @return String	 */	public String getUSER_PROVINCE() {		return USER_PROVINCE;	}	/** 	 * Set the USER_PROVINCE.	 * @param USER_PROVINCE The USER_PROVINCE to set	 */	public void setUSER_PROVINCE(String USER_PROVINCE) {		this.USER_PROVINCE = USER_PROVINCE;	}	/** 	 * Returns the USER_CITY.	 * @return String	 */	public String getUSER_CITY() {		return USER_CITY;	}	/** 	 * Set the USER_CITY.	 * @param USER_CITY The USER_CITY to set	 */	public void setUSER_CITY(String USER_CITY) {		this.USER_CITY = USER_CITY;	}	/** 	 * Returns the QUESTION.	 * @return String	 */	public String getQUESTION() {		return QUESTION;	}	/** 	 * Set the QUESTION.	 * @param QUESTION The QUESTION to set	 */	public void setQUESTION(String QUESTION) {		this.QUESTION = QUESTION;	}	/** 	 * Returns the USER_POST_CODE.	 * @return String	 */	public String getUSER_POST_CODE() {		return USER_POST_CODE;	}	/** 	 * Set the USER_POST_CODE.	 * @param USER_POST_CODE The USER_POST_CODE to set	 */	public void setUSER_POST_CODE(String USER_POST_CODE) {		this.USER_POST_CODE = USER_POST_CODE;	}	/** 	 * Returns the USER_ADDRESS.	 * @return String	 */	public String getUSER_ADDRESS() {		return USER_ADDRESS;	}	/** 	 * Set the USER_ADDRESS.	 * @param USER_ADDRESS The USER_ADDRESS to set	 */	public void setUSER_ADDRESS(String USER_ADDRESS) {		this.USER_ADDRESS = USER_ADDRESS;	}	/** 	 * Returns the ANSWER.	 * @return String	 */	public String getANSWER() {		return ANSWER;	}	/** 	 * Set the ANSWER.	 * @param ANSWER The ANSWER to set	 */	public void setANSWER(String ANSWER) {		this.ANSWER = ANSWER;	}	/** 	 * Returns the USER_HOMEPH.	 * @return String	 */	public String getUSER_HOMEPH() {		return USER_HOMEPH;	}	/** 	 * Set the USER_HOMEPH.	 * @param USER_HOMEPH The USER_HOMEPH to set	 */	public void setUSER_HOMEPH(String USER_HOMEPH) {		this.USER_HOMEPH = USER_HOMEPH;	}	public String getHOMEPAGE() {		return HOMEPAGE;	}	public void setHOMEPAGE(String HOMEPAGE) {		this.HOMEPAGE =HOMEPAGE;	}	/** 	 * Returns the RNAME.	 * @return String	 */	public String getRNAME() {		return RNAME;	}	/** 	 * Set the RNAME.	 * @param RNAME The RNAME to set	 */	public void setRNAME(String RNAME) {		this.RNAME = RNAME;	}	/** 	 * Returns the USER_MOBILEPH.	 * @return String	 */	public String getUSER_MOBILEPH() {		return USER_MOBILEPH;	}	/** 	 * Set the USER_MOBILEPH.	 * @param USER_MOBILEPH The USER_MOBILEPH to set	 */	public void setUSER_MOBILEPH(String USER_MOBILEPH) {		this.USER_MOBILEPH = USER_MOBILEPH;	}}

⌨️ 快捷键说明

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