1 package xpetstore.web.struts.action.product; 2 3 import java.util.Collection ; 4 5 import xpetstore.domain.catalog.ejb.Product; 6 7 import xpetstore.web.struts.action.BaseForm; 8 9 10 16 public class ProductForm 17 extends BaseForm 18 { 19 21 private String _productId; 22 private Product _product = new Product( ); 23 private Collection _items; 24 25 27 30 public Collection getItems( ) 31 { 32 return _items; 33 } 34 35 38 public String getProductId( ) 39 { 40 return _productId; 41 } 42 43 46 public Product getProduct( ) 47 { 48 return _product; 49 } 50 51 55 public void setItems( Collection items ) 56 { 57 _items = items; 58 } 59 60 64 public void setProductId( String productId ) 65 { 66 _productId = productId; 67 } 68 69 73 public void setProduct( Product product ) 74 { 75 _product = product; 76 } 77 } 78 | Popular Tags |