JpfFormBean.java Sample
This topic inludes the source code for the JpfFormBean.java Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/struts/strutsInterop/
Sample Source Code
01 package struts.strutsInterop;
02
03 import com.bea.wlw.netui.pageflow.FormData;
04
05 /*******************************************************************************
06 * JpfFormBean
07 * This is a Page Flow form bean. It will be instantiated by the page flow
08 * and passed to struts module: strutsModule then passed back to the page
09 * flow. At each step the value of "Field1" will be changed to demonstrate
10 * that the same instance of the form is being passed between page flow and
11 * struts.
12 ******************************************************************************/
13 public class JpfFormBean extends com.bea.wlw.netui.pageflow.FormData
14 {
15 public final static String FORM_VALUE = "Form bean Field1 default value set by the form bean itself.";
16 private String field1 = this.FORM_VALUE;
17
18 /***************************************************************************
19 * Constructor
20 **************************************************************************/
21 public JpfFormBean()
22 {
23 super();
24 }
25
26 /***************************************************************************
27 * Field1
28 **************************************************************************/
29 public void setField1(String inField1)
30 {
31 this.field1 = inField1;
32 }
33 public String getField1()
34 {
35 return this.field1;
36 }
37 }
|