This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get the Original URL in form based authentication  RSS feed

manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I am using form based authentication where in if the user is prompted to a Login page for all requests which are classified in url-pattern section of web.xml.

So any resource url accessed by the user will redirect him to the Login page.
What I want to achieve is to trap the original requested URL so i can do a check in the Login page for certain requested URL's

I tried using the HttpRequest object method getRequestURL & getRequestURI but this returns the the url for the Login page itself but not the original requested URL

Do post your thoughts on the same

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!