SHARE
TWEET

Untitled

a guest Mar 20th, 2017 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.myapp.struts;
  7.  
  8. import javax.servlet.http.HttpServletRequest;
  9.  
  10. import org.apache.struts.action.ActionErrors;
  11. import org.apache.struts.action.ActionMapping;
  12. import org.apache.struts.action.ActionMessage;
  13.  
  14. /**
  15.  *
  16.  * @author 1337
  17.  */
  18. public class ProductForm extends org.apache.struts.action.ActionForm {
  19.  
  20.     public ProductForm(Integer customerID, Integer quantity, Integer shippingCost, String salesDate, String shippingDate) {
  21.         this.customerID = customerID;
  22.         this.quantity = quantity;
  23.         this.shippingCost = shippingCost;
  24.         this.salesDate = salesDate;
  25.         this.shippingDate = shippingDate;
  26.     }
  27.    
  28.     private Integer customerID;
  29.     private Integer productID;
  30.     private Integer quantity;
  31.     private Integer shippingCost;
  32.     private String salesDate;
  33.     private String shippingDate;
  34.  
  35.     public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
  36.         ActionErrors errors = new ActionErrors();
  37.      
  38.         return errors;
  39.     }
  40.  
  41.     public Integer getCustomerID() {
  42.         return customerID;
  43.     }
  44.  
  45.     public void setCustomerID(Integer customerID) {
  46.         this.customerID = customerID;
  47.     }
  48.  
  49.     public Integer getProductID() {
  50.         return productID;
  51.     }
  52.  
  53.     public void setProductID(Integer productID) {
  54.         this.productID = productID;
  55.     }
  56.  
  57.     public Integer getQuantity() {
  58.         return quantity;
  59.     }
  60.  
  61.     public void setQuantity(Integer quantity) {
  62.         this.quantity = quantity;
  63.     }
  64.  
  65.     public Integer getShippingCost() {
  66.         return shippingCost;
  67.     }
  68.  
  69.     public void setShippingCost(Integer shippingCost) {
  70.         this.shippingCost = shippingCost;
  71.     }
  72.  
  73.     public String getSalesDate() {
  74.         return salesDate;
  75.     }
  76.  
  77.     public void setSalesDate(String salesDate) {
  78.         this.salesDate = salesDate;
  79.     }
  80.  
  81.     public String getShippingDate() {
  82.         return shippingDate;
  83.     }
  84.  
  85.     public void setShippingDate(String shippingDate) {
  86.         this.shippingDate = shippingDate;
  87.     }
  88. }
RAW Paste Data
Top