# DatabindingController.jpf Sample

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

## Sample Source Code

`001 package handlingData.databinding; 002 import com.bea.wlw.netui.pageflow.FormData; 003 import com.bea.wlw.netui.pageflow.Forward; 004 import com.bea.wlw.netui.pageflow.PageFlowController; 005 import javax.servlet.ServletContext; 006 007 /** 008 * @jpf:controller 009 * @jpf:view-properties view-properties:: 010 * <!-- This data is auto-generated. Hand-editing this section is not recommended. --> 011 * <view-properties> 012 * <pageflow-object id="pageflow:/handlingData/databinding/databindingController.jpf"/> 013 * <pageflow-object id="action:begin.do"> 014 * <property value="80" name="x"/> 015 * <property value="120" name="y"/> 016 * </pageflow-object> 017 * <pageflow-object id="action:toActionForm.do"> 018 * <property value="320" name="x"/> 019 * <property value="120" name="y"/> 020 * </pageflow-object> 021 * <pageflow-object id="action:toApplication.do"> 022 * <property value="320" name="x"/> 023 * <property value="180" name="y"/> 024 * </pageflow-object> 025 * <pageflow-object id="action:toBundle.do"> 026 * <property value="320" name="x"/> 027 * <property value="240" name="y"/> 028 * </pageflow-object> 029 * <pageflow-object id="action:toGlobalApp.do"> 030 * <property value="320" name="x"/> 031 * <property value="300" name="y"/> 032 * </pageflow-object> 033 * <pageflow-object id="action:toPageContext.do"> 034 * <property value="320" name="x"/> 035 * <property value="360" name="y"/> 036 * </pageflow-object> 037 * <pageflow-object id="action:toPageFlow.do"> 038 * <property value="320" name="x"/> 039 * <property value="420" name="y"/> 040 * </pageflow-object> 041 * <pageflow-object id="action:toRequest.do"> 042 * <property value="320" name="x"/> 043 * <property value="480" name="y"/> 044 * </pageflow-object> 045 * <pageflow-object id="action:toSession.do"> 046 * <property value="320" name="x"/> 047 * <property value="540" name="y"/> 048 * </pageflow-object> 049 * <pageflow-object id="action:toURL.do"> 050 * <property value="320" name="x"/> 051 * <property value="600" name="y"/> 052 * </pageflow-object> 053 * <pageflow-object id="action-call:@page:index.jsp@#@action:toGlobalApp.do@"> 054 * <property value="236,260,260,284" name="elbowsX"/> 055 * <property value="123,123,292,292" name="elbowsY"/> 056 * <property value="East_2" name="fromPort"/> 057 * <property value="West_1" name="toPort"/> 058 * </pageflow-object> 059 * <pageflow-object id="action-call:@page:index.jsp@#@action:toBundle.do@"> 060 * <property value="236,260,260,284" name="elbowsX"/> 061 * <property value="123,123,232,232" name="elbowsY"/> 062 * <property value="East_2" name="fromPort"/> 063 * <property value="West_1" name="toPort"/> 064 * </pageflow-object> 065 * <pageflow-object id="action-call:@page:index.jsp@#@action:toActionForm.do@"> 066 * <property value="236,260,260,284" name="elbowsX"/> 067 * <property value="112,112,112,112" name="elbowsY"/> 068 * <property value="East_1" name="fromPort"/> 069 * <property value="West_1" name="toPort"/> 070 * </pageflow-object> 071 * <pageflow-object id="action-call:@page:index.jsp@#@action:toSession.do@"> 072 * <property value="236,260,260,284" name="elbowsX"/> 073 * <property value="123,123,532,532" name="elbowsY"/> 074 * <property value="East_2" name="fromPort"/> 075 * <property value="West_1" name="toPort"/> 076 * </pageflow-object> 077 * <pageflow-object id="action-call:@page:index.jsp@#@action:toApplication.do@"> 078 * <property value="236,260,260,284" name="elbowsX"/> 079 * <property value="123,123,172,172" name="elbowsY"/> 080 * <property value="East_2" name="fromPort"/> 081 * <property value="West_1" name="toPort"/> 082 * </pageflow-object> 083 * <pageflow-object id="action-call:@page:index.jsp@#@action:toPageFlow.do@"> 084 * <property value="236,260,260,284" name="elbowsX"/> 085 * <property value="123,123,412,412" name="elbowsY"/> 086 * <property value="East_2" name="fromPort"/> 087 * <property value="West_1" name="toPort"/> 088 * </pageflow-object> 089 * <pageflow-object id="action-call:@page:index.jsp@#@action:toPageContext.do@"> 090 * <property value="236,260,260,284" name="elbowsX"/> 091 * <property value="123,123,352,352" name="elbowsY"/> 092 * <property value="East_2" name="fromPort"/> 093 * <property value="West_1" name="toPort"/> 094 * </pageflow-object> 095 * <pageflow-object id="action-call:@page:index.jsp@#@action:toRequest.do@"> 096 * <property value="236,260,260,284" name="elbowsX"/> 097 * <property value="123,123,472,472" name="elbowsY"/> 098 * <property value="East_2" name="fromPort"/> 099 * <property value="West_1" name="toPort"/> 100 * </pageflow-object> 101 * <pageflow-object id="action-call:@page:index.jsp@#@action:toURL.do@"> 102 * <property value="236,260,260,284" name="elbowsX"/> 103 * <property value="123,123,592,592" name="elbowsY"/> 104 * <property value="East_2" name="fromPort"/> 105 * <property value="West_1" name="toPort"/> 106 * </pageflow-object> 107 * <pageflow-object id="page:index.jsp"> 108 * <property value="200" name="x"/> 109 * <property value="120" name="y"/> 110 * </pageflow-object> 111 * <pageflow-object id="external-jpf:actionForm/ActionFormController.jpf"> 112 * <property value="440" name="x"/> 113 * <property value="120" name="y"/> 114 * </pageflow-object> 115 * <pageflow-object id="page:application/application.jsp"> 116 * <property value="440" name="x"/> 117 * <property value="180" name="y"/> 118 * </pageflow-object> 119 * <pageflow-object id="external-jpf:bundle/bundleController.jpf"> 120 * <property value="440" name="x"/> 121 * <property value="240" name="y"/> 122 * </pageflow-object> 123 * <pageflow-object id="external-jpf:globalApp/globalAppController.jpf"> 124 * <property value="440" name="x"/> 125 * <property value="300" name="y"/> 126 * </pageflow-object> 127 * <pageflow-object id="page:pageContext/pageContext.jsp"> 128 * <property value="440" name="x"/> 129 * <property value="360" name="y"/> 130 * </pageflow-object> 131 * <pageflow-object id="external-jpf:pageFlow/PageFlowContextController.jpf"> 132 * <property value="440" name="x"/> 133 * <property value="420" name="y"/> 134 * </pageflow-object> 135 * <pageflow-object id="external-jpf:request/RequestController.jpf"> 136 * <property value="440" name="x"/> 137 * <property value="480" name="y"/> 138 * </pageflow-object> 139 * <pageflow-object id="page:session/session.jsp"> 140 * <property value="440" name="x"/> 141 * <property value="540" name="y"/> 142 * </pageflow-object> 143 * <pageflow-object id="external-jpf:url/urlController.jpf"> 144 * <property value="440" name="x"/> 145 * <property value="600" name="y"/> 146 * </pageflow-object> 147 * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@"> 148 * <property value="116,140,140,164" name="elbowsX"/> 149 * <property value="112,112,112,112" name="elbowsY"/> 150 * <property value="East_1" name="fromPort"/> 151 * <property value="West_1" name="toPort"/> 152 * <property value="success" name="label"/> 153 * </pageflow-object> 154 * <pageflow-object id="forward:path#success#actionForm/ActionFormController.jpf#@action:toActionForm.do@"> 155 * <property value="356,380,380,404" name="elbowsX"/> 156 * <property value="112,112,112,112" name="elbowsY"/> 157 * <property value="East_1" name="fromPort"/> 158 * <property value="West_1" name="toPort"/> 159 * <property value="success" name="label"/> 160 * </pageflow-object> 161 * <pageflow-object id="forward:path#success#application/application.jsp#@action:toApplication.do@"> 162 * <property value="356,380,380,404" name="elbowsX"/> 163 * <property value="172,172,172,172" name="elbowsY"/> 164 * <property value="East_1" name="fromPort"/> 165 * <property value="West_1" name="toPort"/> 166 * <property value="success" name="label"/> 167 * </pageflow-object> 168 * <pageflow-object id="forward:path#success#bundle/bundleController.jpf#@action:toBundle.do@"> 169 * <property value="356,380,380,404" name="elbowsX"/> 170 * <property value="232,232,232,232" name="elbowsY"/> 171 * <property value="East_1" name="fromPort"/> 172 * <property value="West_1" name="toPort"/> 173 * <property value="success" name="label"/> 174 * </pageflow-object> 175 * <pageflow-object id="forward:path#success#globalApp/globalAppController.jpf#@action:toGlobalApp.do@"> 176 * <property value="356,380,380,404" name="elbowsX"/> 177 * <property value="292,292,292,292" name="elbowsY"/> 178 * <property value="East_1" name="fromPort"/> 179 * <property value="West_1" name="toPort"/> 180 * <property value="success" name="label"/> 181 * </pageflow-object> 182 * <pageflow-object id="forward:path#success#pageContext/pageContext.jsp#@action:toPageContext.do@"> 183 * <property value="356,380,380,404" name="elbowsX"/> 184 * <property value="352,352,352,352" name="elbowsY"/> 185 * <property value="East_1" name="fromPort"/> 186 * <property value="West_1" name="toPort"/> 187 * <property value="success" name="label"/> 188 * </pageflow-object> 189 * <pageflow-object id="forward:path#success#pageFlow/PageFlowContextController.jpf#@action:toPageFlow.do@"> 190 * <property value="356,380,380,404" name="elbowsX"/> 191 * <property value="412,412,412,412" name="elbowsY"/> 192 * <property value="East_1" name="fromPort"/> 193 * <property value="West_1" name="toPort"/> 194 * <property value="success" name="label"/> 195 * </pageflow-object> 196 * <pageflow-object id="forward:path#success#request/RequestController.jpf#@action:toRequest.do@"> 197 * <property value="356,380,380,404" name="elbowsX"/> 198 * <property value="472,472,472,472" name="elbowsY"/> 199 * <property value="East_1" name="fromPort"/> 200 * <property value="West_1" name="toPort"/> 201 * <property value="success" name="label"/> 202 * </pageflow-object> 203 * <pageflow-object id="forward:path#success#session/session.jsp#@action:toSession.do@"> 204 * <property value="356,380,380,404" name="elbowsX"/> 205 * <property value="532,532,532,532" name="elbowsY"/> 206 * <property value="East_1" name="fromPort"/> 207 * <property value="West_1" name="toPort"/> 208 * <property value="success" name="label"/> 209 * </pageflow-object> 210 * <pageflow-object id="forward:path#success#url/urlController.jpf#@action:toURL.do@"> 211 * <property value="356,380,380,404" name="elbowsX"/> 212 * <property value="592,592,592,592" name="elbowsY"/> 213 * <property value="East_1" name="fromPort"/> 214 * <property value="West_1" name="toPort"/> 215 * <property value="success" name="label"/> 216 * </pageflow-object> 217 * </view-properties> 218 * :: 219 */ 220 public class databindingController extends PageFlowController 221 { 222 /** 223 * @jpf:action 224 * @jpf:forward name="success" path="index.jsp" 225 */ 226 protected Forward begin() 227 { 228 return new Forward("success"); 229 } 230 231 /** 232 * @jpf:action 233 * @jpf:forward path="actionForm/ActionFormController.jpf" name="success" 234 */ 235 protected Forward toActionForm() 236 { 237 return new Forward("success"); 238 } 239 240 /** 241 * @jpf:action 242 * @jpf:forward path="application/application.jsp" name="success" 243 */ 244 protected Forward toApplication() 245 { 246 return new Forward("success"); 247 } 248 249 /** 250 * @jpf:action 251 * @jpf:forward path="bundle/bundleController.jpf" name="success" 252 */ 253 protected Forward toBundle() 254 { 255 return new Forward("success"); 256 } 257 258 /** 259 * @jpf:action 260 * @jpf:forward path="globalApp/globalAppController.jpf" name="success" 261 */ 262 protected Forward toGlobalApp() 263 { 264 return new Forward("success"); 265 } 266 267 /** 268 * @jpf:action 269 * @jpf:forward path="pageContext/pageContext.jsp" name="success" 270 */ 271 protected Forward toPageContext() 272 { 273 return new Forward("success"); 274 } 275 276 /** 277 * @jpf:action 278 * @jpf:forward path="pageFlow/PageFlowContextController.jpf" name="success" 279 */ 280 protected Forward toPageFlow() 281 { 282 return new Forward("success"); 283 } 284 285 /** 286 * @jpf:action 287 * @jpf:forward path="request/RequestController.jpf" name="success" 288 */ 289 protected Forward toRequest() 290 { 291 return new Forward("success"); 292 } 293 294 /** 295 * @jpf:action 296 * @jpf:forward path="session/session.jsp" name="success" 297 */ 298 protected Forward toSession() 299 { 300 return new Forward("success"); 301 } 302 303 /** 304 * @jpf:action 305 * @jpf:forward path="url/urlController.jpf" name="success" 306 */ 307 protected Forward toURL() 308 { 309 return new Forward("success"); 310 } 311 }`