ContentController.jpf Sample

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

Sample Source Code


01 package tagSamples.netui.content;
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:/tagSamples/content/ContentController.jpf"/>
13  <pageflow-object id="page:index.jsp">
14  *   <property value="240" name="x"/>
15  *   <property value="100" name="y"/>
16  </pageflow-object>
17  <pageflow-object id="action:begin.do">
18  *   <property value="80" name="x"/>
19  *   <property value="100" name="y"/>
20  </pageflow-object>
21  <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
22  *   <property value="116,160,160,204" name="elbowsX"/>
23  *   <property value="92,92,92,92" name="elbowsY"/>
24  *   <property value="East_1" name="fromPort"/>
25  *   <property value="West_1" name="toPort"/>
26  *   <property value="success" name="label"/>
27  </pageflow-object>
28  </view-properties>
29  * ::
30  */
31 public class ContentController extends PageFlowController
32 {
33 
34     public String _firstname;
35      
36     public String _lastname;
37     
38     public java.util.Date _date;
39 
40     protected void onCreate()
41     {
42         _firstname = "John";
43         _lastname = "Doe";
44         _date = new Date();
45     }  
46 
47     /**
48      * @jpf:action
49      * @jpf:forward name="success" path="index.jsp"
50      */
51     protected Forward begin()
52     {
53         return new Forward("success");
54     }
55 }