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

📄 addfundform.java

📁 这是本人以前在学校时
💻 JAVA
字号:
/*
 * Created on 2006-6-28
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.funddeal.view.actionform.client;

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;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class AddFundForm extends ActionForm {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String fund_no;
	private String fund_name;
	private String price;
	private String description;
	private String status;

	public ActionErrors validate(ActionMapping apping,
			HttpServletRequest request){
				
				ActionErrors error=new ActionErrors();
				if(fund_no.equals("")||fund_name.equals("")||price.equals("")||description.equals("")){
					error.add("errors",new ActionMessage("dienfj"));
				}
				
				/*?如何判断一个数为FLOAT型*/
				
				return error;
		
	}
	
	/**
	 * @return Returns the description.
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description The description to set.
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return Returns the fund_name.
	 */
	public String getFund_name() {
		return fund_name;
	}
	/**
	 * @param fund_name The fund_name to set.
	 */
	public void setFund_name(String fund_name) {
		this.fund_name = fund_name;
	}
	/**
	 * @return Returns the fund_no.
	 */
	public String getFund_no() {
		return fund_no;
	}
	/**
	 * @param fund_no The fund_no to set.
	 */
	public void setFund_no(String fund_no) {
		this.fund_no = fund_no;
	}
	/**
	 * @return Returns the price.
	 */
	public String getPrice() {
		return price;
	}
	/**
	 * @param price The price to set.
	 */
	public void setPrice(String price) {
		this.price = price;
	}
	/**
	 * @return Returns the status.
	 */
	public String getStatus() {
		return status;
	}
	/**
	 * @param status The status to set.
	 */
	public void setStatus(String status) {
		this.status = status;
	}
}

⌨️ 快捷键说明

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