# RequestController.jpf Sample

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

## Sample Source Code

`01 package handlingData.databinding.request; 02 import com.bea.wlw.netui.pageflow.FormData; 03 import com.bea.wlw.netui.pageflow.Forward; 04 import com.bea.wlw.netui.pageflow.PageFlowController; 05 import java.util.Date; 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:/handlingData/databinding/request/RequestController.jpf"/> 13 * <pageflow-object id="action:begin.do"> 14 * <property value="80" name="x"/> 15 * <property value="100" name="y"/> 16 * </pageflow-object> 17 * <pageflow-object id="action:submit.do"> 18 * <property value="240" name="x"/> 19 * <property value="240" name="y"/> 20 * </pageflow-object> 21 * <pageflow-object id="action-call:@page:submit.jsp@#@action:submit.do@"> 22 * <property value="240,240,240,240" name="elbowsX"/> 23 * <property value="144,170,170,196" name="elbowsY"/> 24 * <property value="South_1" name="fromPort"/> 25 * <property value="North_1" name="toPort"/> 26 * </pageflow-object> 27 * <pageflow-object id="page:submit.jsp"> 28 * <property value="240" name="x"/> 29 * <property value="100" name="y"/> 30 * </pageflow-object> 31 * <pageflow-object id="action-call:@page:show.jsp@#@action:begin.do@"> 32 * <property value="80,80,80,80" name="elbowsX"/> 33 * <property value="196,170,170,144" name="elbowsY"/> 34 * <property value="North_1" name="fromPort"/> 35 * <property value="South_1" name="toPort"/> 36 * </pageflow-object> 37 * <pageflow-object id="page:show.jsp"> 38 * <property value="80" name="x"/> 39 * <property value="240" name="y"/> 40 * </pageflow-object> 41 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 42 * <property value="44,32,32,60" name="elbowsX"/> 43 * <property value="92,92,-4,-4" name="elbowsY"/> 44 * <property value="West_1" name="fromPort"/> 45 * <property value="North_1" name="toPort"/> 46 * <property value="success" name="label"/> 47 * </pageflow-object> 48 * <pageflow-object id="page:index.jsp"> 49 * <property value="60" name="x"/> 50 * <property value="40" name="y"/> 51 * </pageflow-object> 52 * </view-properties> 53 * :: 54 */ 55 public class RequestController extends PageFlowController 56 { 57 /** 58 * @jpf:action 59 * @jpf:forward name="success" path="index.jsp" 60 */ 61 protected Forward begin() 62 { 63 getRequest().setAttribute("requestParam", new Date()); 64 65 return new Forward("success"); 66 } 67 }`