• Post Reply Bookmark Topic Watch Topic
  • New Topic

get URL of browser in Scriplet

 
paresh doshi
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i get the URL that is displayed in browser Address bar using jsp scriplets?

I have used location.href in javascript. But i need the same output in java variable in scriplet.

Can anyone help out.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out the API for the request?
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can use getRequestURL of HttpServletRequest interface.
Regards,
Srikkanth.M
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!