Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.myapp.struts;
- import javax.servlet.http.HttpServletRequest;
- import org.apache.struts.action.ActionErrors;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionMessage;
- /**
- *
- * @author 1337
- */
- public class ProductForm extends org.apache.struts.action.ActionForm {
- public ProductForm(Integer customerID, Integer quantity, Integer shippingCost, String salesDate, String shippingDate) {
- this.customerID = customerID;
- this.quantity = quantity;
- this.shippingCost = shippingCost;
- this.salesDate = salesDate;
- this.shippingDate = shippingDate;
- }
- private Integer customerID;
- private Integer productID;
- private Integer quantity;
- private Integer shippingCost;
- private String salesDate;
- private String shippingDate;
- public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
- ActionErrors errors = new ActionErrors();
- return errors;
- }
- public Integer getCustomerID() {
- return customerID;
- }
- public void setCustomerID(Integer customerID) {
- this.customerID = customerID;
- }
- public Integer getProductID() {
- return productID;
- }
- public void setProductID(Integer productID) {
- this.productID = productID;
- }
- public Integer getQuantity() {
- return quantity;
- }
- public void setQuantity(Integer quantity) {
- this.quantity = quantity;
- }
- public Integer getShippingCost() {
- return shippingCost;
- }
- public void setShippingCost(Integer shippingCost) {
- this.shippingCost = shippingCost;
- }
- public String getSalesDate() {
- return salesDate;
- }
- public void setSalesDate(String salesDate) {
- this.salesDate = salesDate;
- }
- public String getShippingDate() {
- return shippingDate;
- }
- public void setShippingDate(String shippingDate) {
- this.shippingDate = shippingDate;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement