0

Hi I'm using Eclipse Luna and Apache-Tomcat server 8.0.15.

When I run a servlet program in the web browser the path of the servlet has to mentioned.

For Example: http://localhost:8080/DemoServletPrj/DemoServlet

Is it possible that by just typing http://localhost:8080 I can see my servlet running in the browser?

If so how do i go about it?

Joe McBride
  • 3,789
  • 2
  • 34
  • 38
  • possible duplicate of [Tomcat 6: How to change the ROOT application](http://stackoverflow.com/questions/715506/tomcat-6-how-to-change-the-root-application) – Ravi K Thapliyal Jan 21 '15 at 03:32

1 Answers1

0

This is answered already here.

Just find your web.xml in your site folder and change the root path;

<servlet-mapping>
  ..
  <url-pattern>/</url-pattern>
</servlet-mapping>  
Community
  • 1
  • 1
pablopunk
  • 371
  • 1
  • 11