what is the diff between Servletcontext and servletconfig?
Answer Posted / srinu
servletcontext:
1) servletcontext object one for webapplication
2)it used global init parameters
3)with help servletcontext object we find our webserver
ingformation(public java.lang.String getServerInfo())
servletConfig:
1)servletConfig object will be created every servlet suppose
in my webapplication 10 servlets are their 10 servletConfig
object will be created but only one SwervletContext object
will be created
2) it is the righthand object of servlet
3)it used local init parameters
4)with help of servletConfig object we find out logical name
of servlet(public java.lang.String getServletName())
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What initialize variables?
Does printwriter create a file?
How do we access static members in java?
What is the use of coding?
What is a null point?
What is method in research paper?
What is jdbc api?
How do you convert int to char in java?
What is Classloader in Java?
What is java in layman terms?
What is an example of a constant variable?
What is method overriding in java ?
What data structures are used to perform recursion?
What is meant by null and void?
how would you implement a thread pool? : Java thread