We specify any name for a servlet inside <servlet-name> tag. This name is used for referring to servlet in later part of web.xml. You can think of it as your id assigned to you by your university while you have actually different name (like <servlet-class>). Next we will define the servlet mapping. By defining servlet mapping we are specifying URL to access a servlet. <servlet-mapping> tag is used for this purpose.

Sponsored Links