{{theTime}}

Search This Blog

Total Pageviews

How to add a new Servlet to Tomcat Web.xml?

Goto conf\web.xml and add the servlet and servlet-mapping.

Example:

 <servlet>
    <servlet-name>AjaxServlet</servlet-name>
    <servlet-class>com.edu.FirstServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>FirstServlet</servlet-name>
    <url-pattern>/svlt/*</url-pattern>
  </servlet-mapping>

No comments:

Cucumber Eclipse sample program

Cucumber Eclipse SetupCreate Eclipse Maven Project Open pom.xml Goto Dependencies Add GroupId: info.cukes, Artifact Id: cucumber-java, Versi...