{{theTime}}

Search This Blog

Total Pageviews

How to deploy a Servlet in web.xml

Tomcat Servlet Deployment:
Web.xml located at
<Tomcat-instdirectory>/webapps/ROOT/WEB-INF/

Update the web.xml with the <Servlet> and <servlet-mapping>
<servlet>          <servlet-name>ProgramResourceServlet</servlet-name>          <servlet-class>ProgramResourceServlet</servlet-class>      </servlet>        <servlet-mapping>          <servlet-name>ProgramResourceServlet</servlet-name>          <url-pattern>/ProgramResourceServlet</url-pattern>      </servlet-mapping>

No comments:

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {             System.out.println("Shutdown started");              //  Cl...