I have an application running under WebLogic that is using standard forms authentication. The login page is a JSP that presents the login form that will post to j_security_check. So as you would expect, when a user tries to access a page but is not yet authenticated, they will be redirected to the login.jsp.
My question is, how can I determine the page that the user was attempting to hit before WebLogic redirected them to the login page? I wish to use this to change the content of the login page depending on the user’s destination. I’m not seeing anything in the request ojbect that would tell me this.
Thanks for any hints!
We concluded there was no way to find out the target URL from the login page. I woudln’t mind being proven wrong. 🙂
In the meantime, the solution was to deploy the content in second WAR with it’s own login page providing the alternate content. Lots of overhead for what should be a simple problem to solve.