ServletConfig and ServletContext

Опубликовано: 15 Апрель 2026
на канале: AndroJava Tech4U
1,128
22

#androjavatech4u
Practical implementation of ServletConfig and ServletContext

They both are interface.
ServletConfig and ServletContext both are used to get initial value of servlet or an application.
The values are stored in key value pair.
context-param and context-name tags are used to store the values.
In ServletContext values are shared by all the servlets
Whereas in ServletConfig values each servlet can have independent values.

In this video we will see :
Example of ServletConfig and ServletContext
web.xml
context param tag
context name tag
Using servlet context
creating object of servlet context
Fetching value using servlet context object
getInitParameter to fetch value
Using servlet config
create servlet level value
create object of servlet config
fetching value through servlet config object


►Android ROOM Database Tutorial | Introduction to ROOM. Jetpack Tutorials | Android Architecture
   • #1 Android ROOM Database Tutorial | Introd...  

►Selenium Tutorial For Beginners | Selenium Full Course | Selenium Webdriver Tutorial In Hindi
   • #1 What is Software Testing -A career guid...  

►Spring Boot Tutorial | Full Course In Hindi | Java Spring boot Framework
   • #1 Introduction to Spring boot | Why Sprin...  

►Full Java Online Training Session In Hindi 2019-2020
   • Core Java Online Training Session 01 |  Ja...  

►Struts 2 Tutorials In Hindi
   • Struts tutorials in Hindi | Model-0,Model-...  

►Java Hibernate(ORM) Tutorials In Hindi/URDU
   • Hibernate Tutorial 01 | Introduction To Hi...  

►Spring Tutorials In Hindi & Urdu
   • Spring Introduction In Hindi #1  

►Android App Development
   • Android Studio Tutorial in Hindi #1  

►OOPS Interview Questions-
   • Java Interview Questions and Answers - New...  

►Advance Java JEE
   • Java Collections | Collections Framework i...  

►Design Patterns In Java
   • Design Patterns In Java |  Design Patterns...  

Stay tuned with me for more upcoming Videos,
don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺

Follow Me On Social Media
►Facebook:-   / androjavatec.  .
►Twitter:-   / androjavatech4u   .
►LinkedIn:-   / androjava.  .
►Telegram:-https://t.me/AndroJavaTech4u