GetDataController.jpf Sample

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

Sample Source Code


01 package tagSamples.netui_databinding.getData;
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_databinding/getData/GetDataController.jpf"/>
11  <pageflow-object id="page:index.jsp">
12  *   <property value="240" name="x"/>
13  *   <property value="100" name="y"/>
14  </pageflow-object>
15  <pageflow-object id="action:begin.do">
16  *   <property value="80" name="x"/>
17  *   <property value="100" name="y"/>
18  </pageflow-object>
19  <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
20  *   <property value="116,160,160,204" name="elbowsX"/>
21  *   <property value="92,92,92,92" name="elbowsY"/>
22  *   <property value="East_1" name="fromPort"/>
23  *   <property value="West_1" name="toPort"/>
24  *   <property value="success" name="label"/>
25  </pageflow-object>
26  </view-properties>
27  * ::
28  */
29 public class GetDataController extends PageFlowController
30 {
31     public String myData = "Hello, World!";
32     
33     /**
34      * @jpf:action
35      * @jpf:forward name="success" path="index.jsp"
36      */
37     protected Forward begin()
38     {
39         return new Forward("success");
40     }
41 }