I was wondering if someone could give me some guidance to the following matter.
I wish to provide a link to a user to a section of my intranet. If the user is not logged in however then the user will be redirected to the login page. Once he has successfully logged in the user is redirected to the original link. (Note: the login mechanism is in a servlet).
I thought of using a session variable that would contain the original link. If the user is not logged in then the link could be stored as a variable in the user's session. Once the loggin is successful, the variable could be recovered and used to redirect the user to the originally requested page. I am simply looking for guidance.