# Controller.jpf Sample

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

## Sample Location

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

BEA_HOME/weblogic81/samples/workshop/ExtensionDevKit/TaglibExtDevKit/TaglibWebProject/

## Sample Source Code

`01 import com.bea.wlw.netui.pageflow.PageFlowController; 02 import com.bea.wlw.netui.pageflow.Forward; 03 04 /** 05 * This is the default controller for a blank web application. 06 * 07 * @jpf:controller 08 * @jpf:view-properties view-properties:: 09 * <!-- This data is auto-generated. Hand-editing this section is not recommended. --> 10 * <view-properties> 11 * <pageflow-object id="action:begin.do"> 12 * <property name="x" value="60"/> 13 * <property name="y" value="80"/> 14 * </pageflow-object> 15 * <pageflow-object id="page:index.jsp"> 16 * <property name="x" value="220"/> 17 * <property name="y" value="80"/> 18 * </pageflow-object> 19 * <pageflow-object id="page:error.jsp"> 20 * <property name="x" value="220"/> 21 * <property name="y" value="160"/> 22 * </pageflow-object> 23 * <pageflow-object id="forward:path#index#index.jsp#@action:begin.do@"> 24 * <property name="elbowsY" value="72,72,72,72"/> 25 * <property name="elbowsX" value="96,140,140,184"/> 26 * <property name="toPort" value="West_1"/> 27 * <property name="fromPort" value="East_1"/> 28 * <property name="label" value="index"/> 29 * </pageflow-object> 30 * <pageflow-object id="pageflow:/Controller.jpf"/> 31 * </view-properties>:: 32 */ 33 public class Controller extends PageFlowController 34 { 35 /** 36 * @jpf:action 37 * @jpf:forward name="index" path="index.jsp" 38 */ 39 protected Forward begin() 40 { 41 return new Forward("index"); 42 } 43 44 }`