OAF_开发系列18_实现OAF页面跳转setForwardURL / forwardImmediately(案例)

 20150716 Created By BaoXinjian

一、摘要


setForwardURL()与forwardImmediately()

1. forwardImmediately会停止当前页面的请求,直接跳转到新的页面;

2. setForwardURL会等当头页面的请求结束后再跳转;

 

二、setForwardURL()


1. 调用方法

pageContext.setForwardURL("OA.jsp?page=/abc/oracle/apps/test/report/webui/BXJ_TEST_PG",
                                       null,
                                       OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                       null,
                                       null,
                                       true,
                                       OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
                                       OAWebBeanConstants.IGNORE_MESSAGE);

2. 参数意义

 

三、forwardImmediately()


1. 调用方法

pageContext.forwardImmediately("OA.jsp?page=/abc/oracle/apps/test/report/webui/TEST_PG",
                                            null,
                                            OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                            null,
                                            null,
                                            false, // retain AM
                                            OAWebBeanConstants.ADD_BREAD_CRUMB_NO); 

2. 参数意义

 

Thanks and Regards

posted on 2015-07-14 14:29  东方瀚海  阅读(2031)  评论(0编辑  收藏  举报