Bookmark Topic Watch Topic
  • New Topic

can any body tell how to get the orginal url value in servlet  RSS feed

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Report post to moderator
i include jsp page in all pages like product.jsp ,supplier.jsp .if user login from product.jsp i have to redirect to the product.jsp .if user login in supplier.jsp i have to redirect to supplier.jsp. can any body tell how to get the url in servlet?

thanks in advance
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can use the referrer header to check from which URL the use is coming from.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
if user login from product.jsp i have to redirect to the product.jsp .if user login in supplier.jsp i have to redirect to supplier.jsp.


Its not really a good idea to redirect to the same jsp again. you should be using a controller servlet and redirecting to the view(jsp).

can any body tell how to get the url in servlet?

I am not getting you, will you please give some details of exactly what you want to do.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue in original post on this issue and do not post the same issue more than once.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!