# PadController.jpf Sample

This topic inludes the source code for the PadController.jpf Sample.

## Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/pad/

## Sample Source Code

`01 package tagSamples.netui_databinding.pad; 02 import com.bea.wlw.netui.pageflow.Forward; 03 import com.bea.wlw.netui.pageflow.PageFlowController; 04 import java.util.List; 05 import java.util.Vector; 06 07 /** 08 * @jpf:controller 09 * @jpf:view-properties view-properties:: 10 * <!-- This data is auto-generated. Hand-editing this section is not recommended. --> 11 * <view-properties> 12 * <pageflow-object id="pageflow:/tagSamples/netui_databinding/pad/PadController.jpf"/> 13 * <pageflow-object id="page:index.jsp"> 14 * <property value="240" name="x"/> 15 * <property value="100" name="y"/> 16 * </pageflow-object> 17 * <pageflow-object id="action:begin.do"> 18 * <property value="80" name="x"/> 19 * <property value="100" name="y"/> 20 * </pageflow-object> 21 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 22 * <property value="116,160,160,204" name="elbowsX"/> 23 * <property value="92,92,92,92" name="elbowsY"/> 24 * <property value="East_1" name="fromPort"/> 25 * <property value="West_1" name="toPort"/> 26 * <property value="success" name="label"/> 27 * </pageflow-object> 28 * </view-properties> 29 * :: 30 */ 31 public class PadController extends PageFlowController 32 { 33 public Vector[] vecArr = new Vector[3]; 34 35 /* 36 * Fills the Vector[] object with content. 37 */ 38 protected void onCreate() 39 { 40 Vector vec1 = new Vector(); 41 vec1.add("apple"); 42 vec1.add("orange"); 43 vec1.add("banana"); 44 vec1.add("kiwi"); 45 vec1.add("pear"); 46 47 Vector vec2 = new Vector(); 48 vec2.add("Mercury"); 49 vec2.add("Venus"); 50 vec2.add("Earth"); 51 vec2.add("Mars"); 52 vec2.add("Jupiter"); 53 54 Vector vec3 = new Vector(); 55 vec3.add("North America"); 56 vec3.add("South America"); 57 vec3.add("Europe"); 58 vec3.add("Asia"); 59 vec3.add("Australia"); 60 vec3.add("Antarctica"); 61 62 vecArr[0] = vec1; 63 vecArr[1] = vec2; 64 vecArr[2] = vec3; 65 } 66 67 /** 68 * @jpf:action 69 * @jpf:forward name="success" path="index.jsp" 70 */ 71 protected Forward begin() 72 { 73 return new Forward("success"); 74 } 75 }`