jQuery in Action, 3rd edition
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Get Servlet URL
 
It's not a secret anymore!