Рет қаралды 178,927
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
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Check out our website: www.telusko.com
Follow Telusko on Twitter: / navinreddy20
Follow on Facebook:
Telusko : / teluskolearn. .
Navin Reddy : / navintelusko
Follow Navin Reddy on Instagram: / navinreddy20
Subscribe to our other channel:
Navin Reddy : kzfaq.info/love/xmk...
Telusko Hindi :
kzfaq.info/love/itz...
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
www.telusko.com/contactus