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

📄 regpaymentcardform.java

📁 Struts+Spring+Hibernate实现的在线拍卖系统,去掉了这些组件自身的jar包
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package org.bestteam.web.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.validator.ValidatorForm;
import org.bestteam.domain.PaymentCard;
import org.bestteam.domain.UserInfo;

/** 
 * MyEclipse Struts
 * Creation date: 01-26-2007
 * 
 * XDoclet definition:
 * @struts.form name="regPaymentCardForm"
 */
public class RegPaymentCardForm extends ValidatorForm {
	/*
	 * Generated fields
	 */

	/** paymentCard property */
	private PaymentCard paymentCard = new PaymentCard();
	private UserInfo user = new UserInfo();

	/*
	 * Generated Methods
	 */

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors actionErrors = new ActionErrors();
		if (!user.getUserName().equals(request.getSession().getAttribute("userName"))) {
			actionErrors.add("userNameNoEquals", new ActionMessage("userNameNoEquals"));
		}else if (!user.getPassword().equals(request.getSession().getAttribute("password"))){
			actionErrors.add("passwordNoEquals", new ActionMessage("passwordNoEquals"));
		}
		return actionErrors;
	}

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

	/** 
	 * Returns the paymentCard.
	 * @return PaymentCard
	 */
	public PaymentCard getPaymentCard() {
		return paymentCard;
	}

	/** 
	 * Set the paymentCard.
	 * @param paymentCard The paymentCard to set
	 */
	public void setPaymentCard(PaymentCard paymentCard) {
		this.paymentCard = paymentCard;
	}
}

⌨️ 快捷键说明

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