Tag: ServletConfig

Understanding ServletConfig and ServletContext

In our servlet application development, some of the programmers will write fixed coding , with in the servlet, which is not recommended.  For example, if we write database related code in our servlet, in future if…

Example of ServletConfig in Java Servlet

Let us see why/how to use ServletConfig interface in java servlet…. ServletConfig is one of the pre-defined interface. ServletConfig object is used for developing flexible servlets. ServletConfig objct exist one per servlet program. An object of ServletConfig created by…

Example of ServletContext in Java

ServletContext is one of pre-defined interface available in javax.servlet.*; Object of ServletContext interface is available one per web application. An object of ServletContext is automatically created by the container when the web application is deployed. Assume there exist a…

Difference between ServletConfig and ServletContext in Java

Let us see the main differences between ServletConfig and ServletContext, which is very popular interview question as well 🙂 ServletConfig ServletConfig available in javax.servlet.*; package ServletConfig object is one per servlet class Object of ServletConfig will be created during…

If you enjoyed this blog, please consider sharing it...!!!
Most Recent Posts from Top Categories
Spring Boot Hibernate Spring
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2025 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.