I have a requirement to invoke JSP page before AppsLocalLogin.jsp page. From my standalone custom JSP page, I have to connect the database and get some information and based on the information retrieved, redirection will happen. But I am not able to connect to database from custom JSP.
Build a self-secure page. Add a responsibility and add that responsibility in Guest User give the page URL in your custom JSP Page and on the basis of parameter in OAF Page process request event you may do the redirection.