Scenario: Go back to home page when user clicks on Cancel/Home/Back button
- Use the setForwardURL method to go back to Home page
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("Cancel") != null)
{
//return to homepage
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE", null, (byte)0, null, null, false, "N", (byte)0);
}
}
No comments:
Post a Comment