• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Url of web aplpication

 
Ranch Hand
Posts: 590
  • 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/
 
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: 590
  • 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>
 
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.
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
I found some pretty shells, some sea glass and this lovely tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic