aspose file tools
The moose likes Servlets and the fly likes Get Servlet URL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Get Servlet URL" Watch "Get Servlet URL" New topic
Author

Get Servlet URL

Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 105
Hi,

How do I get the url of my servlet?

Thanks!
Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 105
I found it!

req.getRequestURL()

Of course after I ask for help.
 
I agree. Here's the link: jrebel
 
subject: Get Servlet URL
 
Similar Threads
How to get the servlet's requesting page ?
init and service in same thread?
web.xml url-pattern wildcards?
running servlet after the browser is closed
Problem with calling IncludeAction