# HandlingDataController.jpf Sample

This topic inludes the source code for the HandlingDataController.jpf Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/

## Sample Source Code

`001 package handlingData; 002 import com.bea.wlw.netui.pageflow.Forward; 003 import com.bea.wlw.netui.pageflow.PageFlowController; 004 005 /** 006 * @jpf:controller 007 * @jpf:view-properties view-properties:: 008 * <!-- This data is auto-generated. Hand-editing this section is not recommended. --> 009 * <view-properties> 010 * <pageflow-object id="pageflow:/handlingData/handlingDataController.jpf"/> 011 * <pageflow-object id="action:begin.do"> 012 * <property value="100" name="x"/> 013 * <property value="280" name="y"/> 014 * </pageflow-object> 015 * <pageflow-object id="action:toXmlBeans.do"> 016 * <property value="540" name="x"/> 017 * <property value="100" name="y"/> 018 * </pageflow-object> 019 * <pageflow-object id="action:toBinary.do"> 020 * <property value="540" name="x"/> 021 * <property value="160" name="y"/> 022 * </pageflow-object> 023 * <pageflow-object id="action:toComplexFormBean.do"> 024 * <property value="540" name="x"/> 025 * <property value="240" name="y"/> 026 * </pageflow-object> 027 * <pageflow-object id="action:toDropdown.do"> 028 * <property value="540" name="x"/> 029 * <property value="320" name="y"/> 030 * </pageflow-object> 031 * <pageflow-object id="action:toDatabinding.do"> 032 * <property value="540" name="x"/> 033 * <property value="400" name="y"/> 034 * </pageflow-object> 035 * <pageflow-object id="action:toDataflow.do"> 036 * <property value="540" name="x"/> 037 * <property value="460" name="y"/> 038 * </pageflow-object> 039 * <pageflow-object id="action:toMultipleForms.do"> 040 * <property value="540" name="x"/> 041 * <property value="520" name="y"/> 042 * </pageflow-object> 043 * <pageflow-object id="action:toPageFlowSamples.do"> 044 * <property value="540" name="x"/> 045 * <property value="660" name="y"/> 046 * </pageflow-object> 047 * <pageflow-object id="action:toTraditionalVsPageFlow.do"> 048 * <property value="540" name="x"/> 049 * <property value="580" name="y"/> 050 * </pageflow-object> 051 * <pageflow-object id="action:toSimpleSubmit.do"> 052 * <property value="540" name="x"/> 053 * <property value="40" name="y"/> 054 * </pageflow-object> 055 * <pageflow-object id="action-call:@page:index.jsp@#@action:toComplexFormBean.do@"> 056 * <property value="336,420,420,504" name="elbowsX"/> 057 * <property value="272,272,232,232" name="elbowsY"/> 058 * <property value="East_1" name="fromPort"/> 059 * <property value="West_1" name="toPort"/> 060 * </pageflow-object> 061 * <pageflow-object id="action-call:@page:index.jsp@#@action:toBinary.do@"> 062 * <property value="336,420,420,504" name="elbowsX"/> 063 * <property value="272,272,152,152" name="elbowsY"/> 064 * <property value="East_1" name="fromPort"/> 065 * <property value="West_1" name="toPort"/> 066 * </pageflow-object> 067 * <pageflow-object id="action-call:@page:index.jsp@#@action:toSimpleSubmit.do@"> 068 * <property value="336,420,420,504" name="elbowsX"/> 069 * <property value="272,272,32,32" name="elbowsY"/> 070 * <property value="East_1" name="fromPort"/> 071 * <property value="West_1" name="toPort"/> 072 * </pageflow-object> 073 * <pageflow-object id="action-call:@page:index.jsp@#@action:toMultipleForms.do@"> 074 * <property value="336,420,420,504" name="elbowsX"/> 075 * <property value="272,272,512,512" name="elbowsY"/> 076 * <property value="East_1" name="fromPort"/> 077 * <property value="West_1" name="toPort"/> 078 * </pageflow-object> 079 * <pageflow-object id="action-call:@page:index.jsp@#@action:toDropdown.do@"> 080 * <property value="336,420,420,504" name="elbowsX"/> 081 * <property value="272,272,312,312" name="elbowsY"/> 082 * <property value="East_1" name="fromPort"/> 083 * <property value="West_1" name="toPort"/> 084 * </pageflow-object> 085 * <pageflow-object id="action-call:@page:index.jsp@#@action:toDataflow.do@"> 086 * <property value="336,420,420,504" name="elbowsX"/> 087 * <property value="272,272,452,452" name="elbowsY"/> 088 * <property value="East_1" name="fromPort"/> 089 * <property value="West_1" name="toPort"/> 090 * </pageflow-object> 091 * <pageflow-object id="action-call:@page:index.jsp@#@action:toTraditionalVsPageFlow.do@"> 092 * <property value="336,420,420,504" name="elbowsX"/> 093 * <property value="283,283,572,572" name="elbowsY"/> 094 * <property value="East_2" name="fromPort"/> 095 * <property value="West_1" name="toPort"/> 096 * </pageflow-object> 097 * <pageflow-object id="action-call:@page:index.jsp@#@action:toDatabinding.do@"> 098 * <property value="336,420,420,504" name="elbowsX"/> 099 * <property value="272,272,392,392" name="elbowsY"/> 100 * <property value="East_1" name="fromPort"/> 101 * <property value="West_1" name="toPort"/> 102 * </pageflow-object> 103 * <pageflow-object id="action-call:@page:index.jsp@#@action:toPageFlowSamples.do@"> 104 * <property value="336,420,420,504" name="elbowsX"/> 105 * <property value="272,272,652,652" name="elbowsY"/> 106 * <property value="East_1" name="fromPort"/> 107 * <property value="West_1" name="toPort"/> 108 * </pageflow-object> 109 * <pageflow-object id="action-call:@page:index.jsp@#@action:toXmlBeans.do@"> 110 * <property value="336,420,420,504" name="elbowsX"/> 111 * <property value="272,272,92,92" name="elbowsY"/> 112 * <property value="East_1" name="fromPort"/> 113 * <property value="West_1" name="toPort"/> 114 * </pageflow-object> 115 * <pageflow-object id="page:index.jsp"> 116 * <property value="300" name="x"/> 117 * <property value="280" name="y"/> 118 * </pageflow-object> 119 * <pageflow-object id="external-jpf:xmlBeans/XmlBeansController.jpf"> 120 * <property value="700" name="x"/> 121 * <property value="100" name="y"/> 122 * </pageflow-object> 123 * <pageflow-object id="external-jpf:binaryFlow/BinaryFlowController.jpf"> 124 * <property value="700" name="x"/> 125 * <property value="160" name="y"/> 126 * </pageflow-object> 127 * <pageflow-object id="external-jpf:complexFormBean/complexFormBeanController.jpf"> 128 * <property value="700" name="x"/> 129 * <property value="240" name="y"/> 130 * </pageflow-object> 131 * <pageflow-object id="external-jpf:dropdown/dropdownController.jpf"> 132 * <property value="700" name="x"/> 133 * <property value="320" name="y"/> 134 * </pageflow-object> 135 * <pageflow-object id="external-jpf:databinding/databindingController.jpf"> 136 * <property value="700" name="x"/> 137 * <property value="400" name="y"/> 138 * </pageflow-object> 139 * <pageflow-object id="external-jpf:dataFlow/dataFlowController.jpf"> 140 * <property value="700" name="x"/> 141 * <property value="460" name="y"/> 142 * </pageflow-object> 143 * <pageflow-object id="external-jpf:multipleForms/multipleFormsController.jpf"> 144 * <property value="700" name="x"/> 145 * <property value="520" name="y"/> 146 * </pageflow-object> 147 * <pageflow-object id="external-jpf:/Controller.jpf"> 148 * <property value="700" name="x"/> 149 * <property value="660" name="y"/> 150 * </pageflow-object> 151 * <pageflow-object id="external-jpf:traditional_vs_pageFlow_webApp/traditional_vs_pageFlow_webAppController.jpf"> 152 * <property value="700" name="x"/> 153 * <property value="580" name="y"/> 154 * </pageflow-object> 155 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 156 * <property value="136,200,200,264" name="elbowsX"/> 157 * <property value="272,272,272,272" name="elbowsY"/> 158 * <property value="East_1" name="fromPort"/> 159 * <property value="West_1" name="toPort"/> 160 * <property value="success" name="label"/> 161 * </pageflow-object> 162 * <pageflow-object id="forward:path#success#xmlBeans/XmlBeansController.jpf#@action:toXmlBeans.do@"> 163 * <property value="576,620,620,664" name="elbowsX"/> 164 * <property value="92,92,92,92" name="elbowsY"/> 165 * <property value="East_1" name="fromPort"/> 166 * <property value="West_1" name="toPort"/> 167 * <property value="success" name="label"/> 168 * </pageflow-object> 169 * <pageflow-object id="forward:path#success#binaryFlow/BinaryFlowController.jpf#@action:toBinary.do@"> 170 * <property value="576,620,620,664" name="elbowsX"/> 171 * <property value="152,152,152,152" name="elbowsY"/> 172 * <property value="East_1" name="fromPort"/> 173 * <property value="West_1" name="toPort"/> 174 * <property value="success" name="label"/> 175 * </pageflow-object> 176 * <pageflow-object id="forward:path#success#complexFormBean/complexFormBeanController.jpf#@action:toComplexFormBean.do@"> 177 * <property value="576,620,620,664" name="elbowsX"/> 178 * <property value="232,232,232,232" name="elbowsY"/> 179 * <property value="East_1" name="fromPort"/> 180 * <property value="West_1" name="toPort"/> 181 * <property value="success" name="label"/> 182 * </pageflow-object> 183 * <pageflow-object id="forward:path#success#dropdown/dropdownController.jpf#@action:toDropdown.do@"> 184 * <property value="576,620,620,664" name="elbowsX"/> 185 * <property value="312,312,312,312" name="elbowsY"/> 186 * <property value="East_1" name="fromPort"/> 187 * <property value="West_1" name="toPort"/> 188 * <property value="success" name="label"/> 189 * </pageflow-object> 190 * <pageflow-object id="forward:path#success#databinding/databindingController.jpf#@action:toDatabinding.do@"> 191 * <property value="576,620,620,664" name="elbowsX"/> 192 * <property value="392,392,392,392" name="elbowsY"/> 193 * <property value="East_1" name="fromPort"/> 194 * <property value="West_1" name="toPort"/> 195 * <property value="success" name="label"/> 196 * </pageflow-object> 197 * <pageflow-object id="forward:path#success#dataFlow/dataFlowController.jpf#@action:toDataflow.do@"> 198 * <property value="576,620,620,664" name="elbowsX"/> 199 * <property value="452,452,452,452" name="elbowsY"/> 200 * <property value="East_1" name="fromPort"/> 201 * <property value="West_1" name="toPort"/> 202 * <property value="success" name="label"/> 203 * </pageflow-object> 204 * <pageflow-object id="forward:path#success#multipleForms/multipleFormsController.jpf#@action:toMultipleForms.do@"> 205 * <property value="576,620,620,664" name="elbowsX"/> 206 * <property value="512,512,512,512" name="elbowsY"/> 207 * <property value="East_1" name="fromPort"/> 208 * <property value="West_1" name="toPort"/> 209 * <property value="success" name="label"/> 210 * </pageflow-object> 211 * <pageflow-object id="forward:path#success#/Controller.jpf#@action:toPageFlowSamples.do@"> 212 * <property value="576,620,620,664" name="elbowsX"/> 213 * <property value="652,652,652,652" name="elbowsY"/> 214 * <property value="East_1" name="fromPort"/> 215 * <property value="West_1" name="toPort"/> 216 * <property value="success" name="label"/> 217 * </pageflow-object> 218 * <pageflow-object id="forward:path#success#traditional_vs_pageFlow_webApp/traditional_vs_pageFlow_webAppController.jpf#@action:toTraditionalVsPageFlow.do@"> 219 * <property value="576,620,620,664" name="elbowsX"/> 220 * <property value="572,572,572,572" name="elbowsY"/> 221 * <property value="East_1" name="fromPort"/> 222 * <property value="West_1" name="toPort"/> 223 * <property value="success" name="label"/> 224 * </pageflow-object> 225 * <pageflow-object id="external-jpf:/handlingData/simpleSubmit/SimpleSubmitController.jpf"> 226 * <property value="700" name="x"/> 227 * <property value="40" name="y"/> 228 * </pageflow-object> 229 * <pageflow-object id="forward:path#success#/handlingData/simpleSubmit/SimpleSubmitController.jpf#@action:toSimpleSubmit.do@"> 230 * <property value="576,620,620,664" name="elbowsX"/> 231 * <property value="32,32,32,32" name="elbowsY"/> 232 * <property value="East_1" name="fromPort"/> 233 * <property value="West_1" name="toPort"/> 234 * <property value="success" name="label"/> 235 * </pageflow-object> 236 * </view-properties> 237 * :: 238 */ 239 public class handlingDataController extends PageFlowController 240 { 241 242 /** 243 * @jpf:action 244 * @jpf:forward name="success" path="index.jsp" 245 */ 246 protected Forward begin() 247 { 248 return new Forward("success"); 249 } 250 251 /** 252 * @jpf:action 253 * @jpf:forward path="xmlBeans/XmlBeansController.jpf" name="success" 254 */ 255 protected Forward toXmlBeans() 256 { 257 return new Forward("success"); 258 } 259 260 /** 261 * @jpf:action 262 * @jpf:forward path="binaryFlow/BinaryFlowController.jpf" name="success" 263 */ 264 protected Forward toBinary() 265 { 266 return new Forward("success"); 267 } 268 269 /** 270 * @jpf:action 271 * @jpf:forward path="complexFormBean/complexFormBeanController.jpf" name="success" 272 */ 273 protected Forward toComplexFormBean() 274 { 275 return new Forward("success"); 276 } 277 278 /** 279 * @jpf:action 280 * @jpf:forward path="dropdown/dropdownController.jpf" name="success" 281 */ 282 protected Forward toDropdown() 283 { 284 return new Forward("success"); 285 } 286 287 /** 288 * @jpf:action 289 * @jpf:forward path="databinding/databindingController.jpf" name="success" 290 */ 291 protected Forward toDatabinding() 292 { 293 return new Forward("success"); 294 } 295 296 /** 297 * @jpf:action 298 * @jpf:forward path="dataFlow/dataFlowController.jpf" name="success" 299 */ 300 protected Forward toDataflow() 301 { 302 return new Forward("success"); 303 } 304 305 /** 306 * @jpf:action 307 * @jpf:forward path="multipleForms/multipleFormsController.jpf" name="success" 308 */ 309 protected Forward toMultipleForms() 310 { 311 return new Forward("success"); 312 } 313 314 /** 315 * @jpf:action 316 * @jpf:forward path="/Controller.jpf" name="success" 317 */ 318 protected Forward toPageFlowSamples() 319 { 320 return new Forward("success"); 321 } 322 323 /** 324 * @jpf:action 325 * @jpf:forward path="traditional_vs_pageFlow_webApp/traditional_vs_pageFlow_webAppController.jpf" name="success" 326 */ 327 protected Forward toTraditionalVsPageFlow() 328 { 329 return new Forward("success"); 330 } 331 332 /** 333 * @jpf:action 334 * @jpf:forward name="success" path="/handlingData/simpleSubmit/SimpleSubmitController.jpf" 335 */ 336 protected Forward toSimpleSubmit() 337 { 338 return new Forward("success"); 339 } 340 }`