Hi,
In this way also we can have multiple instances of a servlet.This works and iam sure
New instances of any servlet will be created for as many times as the
servlet is named differently. For instance, all these refer to the same
servlet, but each will be a separate instance....
<servlet>
<servlet-name>MyServletName</servlet-name>
<servlet-class>com.mypackage.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServletName</servlet-name>
<url-pattern>/mymapping</url-pattern>
</servlet-mapping>
http://localhost:8080/mycontext/mymapping http://localhost:8080/mycontext/servlet/MyServletName http://localhost:8080/mycontext/servlet/com.mypackage.MyServlet