FormatTagsController.jpf Sample

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

Sample Source Code


01 package tagSamples.netui.formatTags;
02 import com.bea.wlw.netui.pageflow.Forward;
03 import java.util.Date;
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/formatTags/formatTagsController.jpf"/>
11  <pageflow-object id="action:begin.do">
12  *   <property value="80" name="x"/>
13  *   <property value="100" name="y"/>
14  </pageflow-object>
15  <pageflow-object id="page:index.jsp">
16  *   <property value="240" 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 formatTagsController extends com.bea.wlw.netui.pageflow.PageFlowController
30 {
31 
32     /**
33      * The JSP page data binds to this getter method with the expression
34      
35      *      {pageFlow.date}
36      
37      */
38     public Date getDate()
39     {
40         Date today = new java.util.Date();
41         return today;
42     }
43 
44     /**
45      * This method represents the point of entry into the pageflow
46      * @jpf:action
47      * @jpf:forward name="success" path="index.jsp"
48      */
49     protected Forward begin()
50     {
51         return new Forward"success" );
52     }
53 }