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

📄 modifyform.java

📁 图书商城系统
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.tang.struts.form;

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;



/** 
 * MyEclipse Struts
 * Creation date: 05-25-2008
 * 
 * XDoclet definition:
 * @struts.form name="modifyForm"
 */
public class ModifyForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** renewpassword property */
	private String renewpassword;

	/** newpassword property */
	private String newpassword;

	/** odlpassword property */
	private String oldpassword;
	
	private String password;

	private int uid;
	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		ActionErrors errors = new ActionErrors();
		if(oldpassword==null||"".equals(oldpassword)||!oldpassword.equals(password))
		{
			ActionMessage msg1 = new ActionMessage("ԭ�����������",false);
			errors.add("oldpassword",msg1);
		};
		if(newpassword==null||"".equals(newpassword))
		{
			ActionMessage msg3 = new ActionMessage("���벻��Ϊ��",false);
			errors.add("newpassword",msg3);
		}
		if(renewpassword==null||"".equals(renewpassword))
		{
			ActionMessage msg4 = new ActionMessage("���벻��Ϊ��",false);
			errors.add("renewpassword",msg4);
		}
		if(renewpassword!=null&&!renewpassword.equals(newpassword))
		{
			ActionMessage msg4 = new ActionMessage("}���������벻һ��",false);
			errors.add("check",msg4);
		}
		return errors;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
		password="";
	}

	/** 
	 * Returns the renewpassword.
	 * @return String
	 */
	public String getRenewpassword() {
		return renewpassword;
	}

	/** 
	 * Set the renewpassword.
	 * @param renewpassword The renewpassword to set
	 */
	public void setRenewpassword(String renewpassword) {
		this.renewpassword = renewpassword;
	}

	/** 
	 * Returns the newpassword.
	 * @return String
	 */
	public String getNewpassword() {
		return newpassword;
	}

	/** 
	 * Set the newpassword.
	 * @param newpassword The newpassword to set
	 */
	public void setNewpassword(String newpassword) {
		this.newpassword = newpassword;
	}

	/** 
	 * Returns the odlpassword.
	 * @return String
	 */
	public String getOdlpassword() {
		return oldpassword;
	}

	/** 
	 * Set the odlpassword.
	 * @param odlpassword The odlpassword to set
	 */
	public void setOdlpassword(String odlpassword) {
		this.oldpassword = odlpassword;
	}

	public String getOldpassword() {
		return oldpassword;
	}

	public void setOldpassword(String oldpassword) {
		this.oldpassword = oldpassword;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}
}

⌨️ 快捷键说明

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