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

Generate Insert Sql from Select Statement

SELECT 'INSERT INTO ReferenceTable (ID, Name) VALUES (' +        CAST(ID AS NVARCHAR) + ', ''' + Name + ''...