File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Get Servlet URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Get Servlet URL" Watch "Get Servlet URL" New topic
Author

Get Servlet URL

Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
    
    1
Hi,

How do I get the url of my servlet?

Thanks!
Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
    
    1
I found it!

req.getRequestURL()

Of course after I ask for help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Get Servlet URL
 
Similar Threads
How to get the servlet's requesting page ?
running servlet after the browser is closed
Problem with calling IncludeAction
web.xml url-pattern wildcards?
init and service in same thread?