# MessageController.jpf Sample

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

## Sample Source Code

`01 package tagSamples.netui_databinding.message; 02 import com.bea.wlw.netui.pageflow.Forward; 03 import com.bea.wlw.netui.pageflow.PageFlowController; 04 import java.util.Date; 05 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="pageflow:/tagSamples/netui_databinding/message/MessageController.jpf"/> 12 * <pageflow-object id="page:index.jsp"> 13 * <property value="240" name="x"/> 14 * <property value="100" name="y"/> 15 * </pageflow-object> 16 * <pageflow-object id="action:begin.do"> 17 * <property value="80" name="x"/> 18 * <property value="100" name="y"/> 19 * </pageflow-object> 20 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 21 * <property value="116,160,160,204" name="elbowsX"/> 22 * <property value="92,92,92,92" name="elbowsY"/> 23 * <property value="East_1" name="fromPort"/> 24 * <property value="West_1" name="toPort"/> 25 * <property value="success" name="label"/> 26 * </pageflow-object> 27 * </view-properties> 28 * :: 29 */ 30 public class MessageController extends PageFlowController 31 { 32 public Date currTime = new Date(); 33 34 /** 35 * @jpf:action 36 * @jpf:forward name="success" path="index.jsp" 37 */ 38 protected Forward begin() 39 { 40 return new Forward("success"); 41 } 42 }`