Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL address  RSS feed

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a method that I can use to get the current URL address.
Example. the current URL address is
http://www.javaranch.com
...then I can get that by String or somekind of object
thanks..
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36441
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nelson,
You can get the url used to submit the page throught the method:
request.getRequestURL()
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Jeanne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!