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 […]

java-logo

SevletConfigExample Program In Java

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