• Post Reply Bookmark Topic Watch Topic
  • New Topic

redirect the user once logged in to the requested page  RSS feed

 
Pradyut Bhattacharya
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a form realm authentication
with which i am securing a directory "secureUser"

well my question is: -
How i can redirect the user once logged in to the requested page

the details: -

now i can log on a user using this (login.jsp)



Now a user requests two or more pages in the same session browser (firefox/ie tabs)
"secureUser/one.jsp"
"secureUser/two.jsp"
"secureUser/three.jsp"

Now the user gets a login form page thats login.jsp for all the three requested pages

The user authenticates into the page requested "secureUser/one.jsp"

Now if the user reloads the page "secureUser/two.jsp" or "secureUser/three.jsp" which is now showing login.jsp
he gets the same login.jsp page

How i can redirect the user after logging in once to the requested page
such that the page login.jsp after reloading goes to referred page

I can do this in the login.jsp page



but i cannot get the referred page such as two.jsp or three.jsp

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