{{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:

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command Example:  c:\> fsutil 8dot3name set C: 0