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
How to read and write image from a file ?
How many bytes is a unicode character?
What do you mean by constructor?
Is boolean a wrapper class in java?
Java is pass by value or pass by reference? Explain
Explain the reason behind ending a program with a system.exit(0)?
What is the default execution method in java?
What is the use of put method?
What is meant by stack and queue?
What are thread groups?
What is type conversion in java?
Explain what do you mean by functional overloading in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
Why are variables important in research?
Explain a situation where finally block will not be executed?