ServletConfig and ServletContext

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 s

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *