package com.bjpowernode.struts;
import org.apache.struts.action.ActionForm;
@SuppressWarnings("serial")
public class StepActionForm extends ActionForm {
private String name;
private int[] productId;
private String address;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int[] getProductId() {
return productId;
}
public void setProductId(int[] productId) {
this.productId = productId;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
// @Override
// public void reset(ActionMapping mapping, HttpServletRequest request) {
// this.name = null;
// this.address = null;
// this.productId = null;
// }
public void resetForm() {
this.name = null;
this.address = null;
this.productId = null;
}
}
2.Struts设置ActionForm为session ActionForm
最新推荐文章于 2017-09-01 17:39:24 发布