KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xpetstore > web > webwork > action > customer > RegisterAction


1 /*
2  * Created on 24-Feb-2003
3  */

4 package xpetstore.web.webwork.action.customer;
5
6 import xpetstore.domain.Customer;
7
8 import xpetstore.web.webwork.action.BaseAction;
9
10
11 /**
12  * @author <a HREF="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
13  *
14  * @webwork.action
15  * name="register"
16  * success="register.vm"
17  */

18 public class RegisterAction
19     extends BaseAction
20 {
21     //~ Instance fields --------------------------------------------------------
22

23     private Customer _customer = new Customer( );
24
25     //~ Methods ----------------------------------------------------------------
26

27     /**
28      * @return Customer
29      */

30     public Customer getCustomer( )
31     {
32         return _customer;
33     }
34
35     /**
36      * Sets the customer.
37      * @param customer The customer to set
38      */

39     public void setCustomer( Customer customer )
40     {
41         _customer = customer;
42     }
43 }
44
Popular Tags