In one of the code i saw that, there was no <servlet-mapping>
tags and only its declared as below
<servlet>
<servlet-name>startServlet</servlet-name>
<servlet-class>com.login.StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
can this work without <servlet-mapping>
and work on <load-on-startup>1</load-on-startup>
??
This servlet will get loaded on server startup to connect to DB and do few operation on caching.
PS: this is on Servlet 2.0+ version and not annotated.
thanks Punith