aspose file tools*
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
Author

Url of web aplpication

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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: 576
<servlet-name>
GenericServlet
</servlet-name>

<servlet-class>
com.GenericServlet
</servlet-class>

<servlet-mapping>
<servlet-name>GenericServlet</servlet-name>
<url-pattern>/GenericServlet</url-pattern>
</servlet-mapping>
Lei Guoguo
Greenhorn

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: lgg860911@yahoo.com.cn, I will help you, and improve my english. Thanks everyone.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Url of web aplpication