File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Url of web aplpication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Url of web aplpication" Watch "Url of web aplpication" New topic

Url of web aplpication

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
I came across a web application ,It name is “sample” and deployed in tomcat server.
But the URl used to access the index page is http://localhost:8080/abc/.

As per my understanding the URl should be Http://localhost:8080/sample/
Mohamed Inayath
Ranch Hand

Joined: Nov 22, 2004
Posts: 124
Check the URL mapping available in web.xml

Or Share the web.xml snippet of the application.
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580


Lei Guoguo

Joined: Mar 31, 2009
Posts: 26
you can see the directory under %Tomcat_home%/webapps/
what's name of your application program's directory.
I think the directory's name is access url.

I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail:, I will help you, and improve my english. Thanks everyone.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

What's in your web.xml has no bearing on the context path of the application. How the context is defied within Tomcat is what will determine the path.

Moved to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Url of web aplpication
It's not a secret anymore!