java-logo

SevletContextExample Program In Java

In this tutorial we learn how to use ServletContext interface in Servlet based applications and how to run that servlet in Tomcat which is integrated with eclipse. How to retrieve context information in Servlet class? In Servlet class first we need to create ServletContext reference by calling the getServletContext() and then we need to retrieve […]