rednight

          0x2B|~0x2B,That's not a question,Just do it.
          posts - 32, comments - 14, trackbacks - 0, articles - 0

          Page Flow Error - No Relevant Page

          Posted on 2007-01-16 09:06 rednight 閱讀(752) 評論(0)  編輯  收藏

          一個頁面流在第一次使用時,內(nèi)部屬性currentpage并沒有指定頁面,所以避免在begin方法里使用return-to: current page用法.同時在用的時候注意頁面流的工作方式


          問題描述:
          Error message like below in Web Page is displayed:
          
          Page Flow:
           /com/xxxx/xxx/xxx.jpf
          Action:
           update
           
          Page Flow Error - No Relevant Page
          You have tried to return to a recent page in the current page flow through return-to="currentPage", 
          but there is no appropriate page. 
          
          
          Exception's stack trace:
          
          Exception: No previous page for return-to="currentPage" on action create in page flow
           /com/gems/mt/web/CreateReleaseCntr/CreateReleaseCntrController.jpf.
          com.bea.wlw.netui.pageflow.NoPreviousPageException: No relevant page for return-to="currentPage" 
          on action create in page flow /com/gems/mt/web/CreateReleaseCntr/CreateReleaseCntrController.jpf.
          at com.bea.wlw.netui.pageflow.FlowController.doReturnToPage(FlowController.java:1328)
          at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1023)
          at com.bea.wlw.netui.pageflow.PageFlowController.forwardTo(PageFlowController.java:606)
          at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:765)
          
          ...
          
          
          
          原因分析和解決方法:
          When a new page flow is created and its current page is null (it mean you visit at the fist time),
           so such an exception like NoPreviousPageException occur if you use return-to="currentPage".
          
          if a new page flow finish a successful forward, it will treat last page as current page
          
          so that we can use current page to display error message conveniently.
          
          Solution:
          
          ensure page flow finish a successful forward and use current page again.
          
          You can also use path="specificPage.jsp" instead of return-to="currentPage" 
          if your original return-to is just one specific page.
          
          

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 三亚市| 岳阳县| 资源县| 衡东县| 祁阳县| 长岛县| 兰坪| 双峰县| 富源县| 华阴市| 东海县| 北流市| 庆安县| 鄄城县| 文山县| 桃源县| 兰考县| 平山县| 澄迈县| 方正县| 德惠市| 临猗县| SHOW| 衡阳市| 宜丰县| 吕梁市| 阳新县| 平舆县| 玉树县| 如东县| 蒙山县| 福海县| 昌乐县| 南江县| 察哈| 泗洪县| 洞口县| 宜阳县| 铅山县| 德昌县| 韶关市|