wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Get Servlet URL" Watch "Get Servlet URL" New topic
Author

Get Servlet URL

Lou Pellegrini
Ranch Hand

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

How do I get the url of my servlet?

Thanks!
Lou Pellegrini
Ranch Hand

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

req.getRequestURL()

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