File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Determining where you came from in FORM based login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Determining where you came from in FORM based login" Watch "Determining where you came from in FORM based login" New topic
Author

Determining where you came from in FORM based login

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi,
Is there anyway for a FORM login page to be able to determine where it came from?

For example, suppose you wanted to change the behaviour or layout of your FORM login page based on where the request originally came from - is this possible?

And is it possible to do this using JSP or Javascript rather than using a filter?

Many thanks.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

The ServletRequest object has a method that will allow you to determine what page your request came from: getRemoteAddr.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Determining where you came from in FORM based login