ServletConfig
|
ServletContext
|
ServletConfig Represents
single Servlet.
|
It represents whole WebApplication running on particular JVM
and Common for all Servlets.
|
It’s like a local parameter associated with particular Servlet.
|
It’s like a local parameter associated with whole application.
|
It is a name,value pair defined inside the servlet section of web.xml
file .so,it has servlet wide scope.
|
It has application wide scope .so,defined out side of servlet tag in
web.xml
|
getServletConfig() method is used to get the config object.
|
getServletContext() method is used to get the context object.
|
PUB ID
Tuesday, 22 December 2015
Difference between ServletConfig and ServletContext?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment