网上购物系统 管理员模块和用户模块
源代码在线查看: insertform.java
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.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;
/**
* MyEclipse Struts
* Creation date: 01-07-2009
*
* XDoclet definition:
* @struts.form name="insertForm"
*/
public class InsertForm extends ActionForm {
/*
* Generated fields
*/
/** cost property */
private String ID;
private Double cost;
/** name property */
private String name;
/** number property */
private Integer number;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}
/**
* Returns the cost.
* @return Double
*/
public Double getCost() {
return cost;
}
/**
* Set the cost.
* @param cost The cost to set
*/
public void setCost(Double cost) {
this.cost = cost;
}
/**
* Returns the name.
* @return String
*/
public String getName() {
return name;
}
/**
* Set the name.
* @param name The name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns the number.
* @return Integer
*/
public Integer getNumber() {
return number;
}
/**
* Set the number.
* @param number The number to set
*/
public void setNumber(Integer number) {
this.number = number;
}
public String getID() {
return ID;
}
public void setID(String id) {
ID = id;
}
}