# 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/SamplesApp/WebServices/

## Sample Source Code

    import com.bea.wlw.netui.pageflow.PageFlowController;
    import com.bea.wlw.netui.pageflow.Forward;

    /**
     * This is the default controller for a blank web application.
     * @jpf:view-properties view-properties::
     * <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
     * <view-properties>
     * <pageflow-object id="pageflow:/Controller.jpf"/>
     * <pageflow-object id="action:begin.do">
     *   <property value="60" name="x"/>
     *   <property value="80" name="y"/>
     * </pageflow-object>
     * <pageflow-object id="page:index.jsp">
     *   <property value="240" name="x"/>
     *   <property value="80" name="y"/>
     * </pageflow-object>
     * <pageflow-object id="page:error.jsp">
     *   <property value="240" name="x"/>
     *   <property value="180" name="y"/>
     * </pageflow-object>
     * <pageflow-object id="forward:path#index#index.jsp#@action:begin.do@">
     *   <property value="index" name="label"/>
     *   <property value="West_1" name="toPort"/>
     *   <property value="East_1" name="fromPort"/>
     *   <property value="96,150,150,204" name="elbowsX"/>
     *   <property value="72,72,72,72" name="elbowsY"/>
     * </pageflow-object>
     * </view-properties>
     * ::
     *
     */
    public class Controller extends PageFlowController
    {
        /**
         * @jpf:action
         * @jpf:forward name="index" path="index.jsp"
         */
        protected Forward begin()
        {
            return new Forward("index");
        }

    }