You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Then I found out that a new parameter oas needs to be also passed.
Import the below statements:
Below code will help to generate the url with oas parameter:
String sourceUrl="OA.jsp?OAFunc=<function name>
WebAppsContext wctx = (WebAppsContext)((OADBTransactionImpl) pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext();
String secureUrl = URLTools.generateSecureURL (sourceUrl, wctx);