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

Best Client Optimized Programming Language for Mobile Development?

Use Google's Dart language, which is Object-oriented, class-based and garbage-collected language with C-Style.  Dart can compile to eith...