# RewriteController.jpf Sample

This topic inludes the source code for the RewriteController.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/rewrite/

## Sample Source Code

`01 package tagSamples.netui.rewrite; 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:/tagSamples/netui/rewrite/RewriteController.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-call:@page:index.jsp@#@action:begin.do@"> 16 * <property value="204,160,160,116" name="elbowsX"/> 17 * <property value="92,92,92,92" name="elbowsY"/> 18 * <property value="West_1" name="fromPort"/> 19 * <property value="East_1" name="toPort"/> 20 * </pageflow-object> 21 * <pageflow-object id="page:index.jsp"> 22 * <property value="240" name="x"/> 23 * <property value="100" name="y"/> 24 * </pageflow-object> 25 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 26 * <property value="116,160,160,204" name="elbowsX"/> 27 * <property value="81,81,81,81" name="elbowsY"/> 28 * <property value="East_0" name="fromPort"/> 29 * <property value="West_0" name="toPort"/> 30 * <property value="success" name="label"/> 31 * </pageflow-object> 32 * </view-properties> 33 * :: 34 */ 35 public class RewriteController extends PageFlowController 36 { 37 38 39 // Uncomment this declaration to access Global.app. 40 // 41 // protected global.Global globalApp; 42 // 43 44 // For an example of page flow exception handling see the example "catch" and "exception-handler" 45 // annotations in {project}/WEB-INF/src/global/Global.app 46 47 /** 48 * This method represents the point of entry into the pageflow 49 * @jpf:action 50 * @jpf:forward name="success" path="index.jsp" 51 */ 52 protected Forward begin() 53 { 54 return new Forward("success"); 55 } 56 }`