Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Url of web aplpication

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the URL mapping available in web.xml

Or Share the web.xml snippet of the application.
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic