# UrlController.jpf Sample

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

## Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/databinding/url/

## Sample Source Code

`01 package handlingData.databinding.url; 02 import com.bea.wlw.netui.pageflow.Forward; 03 import com.bea.wlw.netui.pageflow.PageFlowController; 04 05 /** 06 * @jpf:controller 07 * @jpf:view-properties view-properties:: 08 * <!-- This data is auto-generated. Hand-editing this section is not recommended. --> 09 * <view-properties> 10 * <pageflow-object id="pageflow:/handlingData/databinding/url/urlController.jpf"/> 11 * <pageflow-object id="action:begin.do"> 12 * <property value="80" name="x"/> 13 * <property value="100" name="y"/> 14 * </pageflow-object> 15 * <pageflow-object id="action:toPage2.do"> 16 * <property value="340" name="x"/> 17 * <property value="100" name="y"/> 18 * </pageflow-object> 19 * <pageflow-object id="action:toDatabindingSamplesHome.do"> 20 * <property value="120" name="x"/> 21 * <property value="100" name="y"/> 22 * </pageflow-object> 23 * <pageflow-object id="action-call:@page:index.jsp@#@action:toPage2.do@"> 24 * <property value="276,290,290,304" name="elbowsX"/> 25 * <property value="92,92,92,92" name="elbowsY"/> 26 * <property value="East_1" name="fromPort"/> 27 * <property value="West_1" name="toPort"/> 28 * </pageflow-object> 29 * <pageflow-object id="page:index.jsp"> 30 * <property value="240" name="x"/> 31 * <property value="100" name="y"/> 32 * </pageflow-object> 33 * <pageflow-object id="action-call:@page:page2.jsp@#@action:toDatabindingSamplesHome.do@"> 34 * <property value="96,120,120,120" name="elbowsX"/> 35 * <property value="43,43,49,56" name="elbowsY"/> 36 * <property value="East_2" name="fromPort"/> 37 * <property value="North_1" name="toPort"/> 38 * </pageflow-object> 39 * <pageflow-object id="page:page2.jsp"> 40 * <property value="60" name="x"/> 41 * <property value="40" name="y"/> 42 * </pageflow-object> 43 * <pageflow-object id="external-jpf:/handlingData/databinding/databindingController.jpf"> 44 * <property value="140" name="x"/> 45 * <property value="120" name="y"/> 46 * </pageflow-object> 47 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 48 * <property value="116,160,160,204" name="elbowsX"/> 49 * <property value="92,92,92,92" name="elbowsY"/> 50 * <property value="East_1" name="fromPort"/> 51 * <property value="West_1" name="toPort"/> 52 * <property value="success" name="label"/> 53 * </pageflow-object> 54 * <pageflow-object id="forward:path#success#page2.jsp#@action:toPage2.do@"> 55 * <property value="304,200,200,96" name="elbowsX"/> 56 * <property value="81,81,32,32" name="elbowsY"/> 57 * <property value="West_0" name="fromPort"/> 58 * <property value="East_1" name="toPort"/> 59 * <property value="success" name="label"/> 60 * </pageflow-object> 61 * </view-properties> 62 * :: 63 */ 64 public class urlController extends PageFlowController 65 { 66 /** 67 * @jpf:action 68 * @jpf:forward name="success" path="index.jsp" 69 */ 70 protected Forward begin() 71 { 72 return new Forward("success"); 73 } 74 75 /** 76 * @jpf:action 77 * @jpf:forward name="success" path="page2.jsp" 78 */ 79 protected Forward toPage2() 80 { 81 return new Forward("success"); 82 } 83 }`