java - Determine target URL within login page using Forms authentication with WebLogic -
I have an application running under a weblogic which is using standard form authentication. The login page is a JSP which submits the entry form which will be posted on j_security_check. So as you would expect, when a user tries to use a page but is not yet authenticated, they will be sent to login.jsp.
My question is, was weblogic trying to hit them before redirecting to the login page? I want to use it to change the contents of the login page based on the user's destination. I'm not seeing anything in the request which will tell me this.
You can use:
< Code> weblogic.servlet.security.ServletAuthentication.getTargetURLForFormAuthentication (request.getSession ())
This is a public static method and returns the string.
I have tested and it works for me
Comments
Post a Comment