This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Url of web aplpication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 56192
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Url of web aplpication
 
Similar Threads
servlet
tomcat server
running tomcat
Servlets with Tomcat 4
Sessions on a servlet