# CustomerControl.java Sample

This topic inludes the source code for the CustomerControl.java Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/complexFormBean/controls/

## Sample Source Code

`01 package handlingData.complexFormBean.controls; 02 03 import com.bea.control.Control; 04 05 public interface CustomerControl extends Control 06 { 07 public static class Customer 08 { 09 private String firstName; 10 private String lastName; 11 12 public Customer() {} 13 14 public Customer(String firstName, String lastName) 15 { 16 this.firstName = firstName; 17 this.lastName = lastName; 18 } 19 20 public String getFirstName() {return firstName;} 21 public void setFirstName(String firstName) {this.firstName = firstName;} 22 23 public String getLastName() {return lastName;} 24 public void setLastName(String lastName) {this.lastName = lastName;} 25 } 26 27 handlingData.complexFormBean.controls.CustomerControl.Customer getCustomer(int id); 28 29 boolean updateCustomer(handlingData.complexFormBean.controls.CustomerControl.Customer customer, java.lang.String couponNumber); 30 }`