Professional Documents
Culture Documents
Now we are going to learn how to call one page from another page.
For this first we have to create one workspace and one project.
Create two pages one for data display and another for data entry.
Now here I am not creating the pages once again I am using my previous data display and data
entry page only.
Now when we click the create employee button it should redirect to data entry page.
For calling one page from another we have a method called pageContext.setForwardURL.
Write the following code in the processFormRequest of data display page controller( i.e in the
first page controller.)
/*For Copy pasting the code */
if(pageContext.getParameter("createEmployee")!=null)
{
pageContext.setForwardURL("OA.jsp?page=/sangu/oracle/apps/po/DataDisplayPRJ/webui/
DataInsertPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
}
"OA.jsp?page=/sangu/oracle/apps/po/DataDisplayPRJ/webui/DataInsertPG"
Null: - If we want to call oracle apps form then in first line Destination page path is null and
here we will give the function name of the form. Line1 and Line2 are interlinked.
Null: - if we want only one particular menu then here we will specify that menu name and in
line3 we need to pass null, line3 and line4 are interlinked.
Null (parameter):- If we want to carry the values then we pass those values here.
True (Retain AM): generally this will be set to true value.
ADD_BREAD_CRUMB_YES:- If we want the link to carry to next page and store in the
memory.
IGNORE_MESSAGES:- It will restrict the messages to not to carry from one page to another.
After clicking the Create Employee Button it will go to Data Entry page.
If u want go back to previous page then create one button in this page and write the code in this
page controller.