web.xml configuration for servlet

Web.xml configuration for Servlet   Configure the servlet For configuring the servlet need to use <servlet> element. In this we will provide the servlet information such as Servlets name and class under the <servlet-name>, <servlet-class> tags respectively. Next step is mapping this servlet to the URL or URL pattern with the help of <servlet-mapping> <?xml…

Continue reading

Load on Startup Servlet Example

Load on Startup    The <load-on-startup> tag which is present inside the <servlet> tag helps you to control when the servlet has to be loaded by the Container. This load-on-startup tag information present in the web.xml helps the container to load the mentioned servlets as soon as the servlet container starts. If you don’t specify…

Continue reading