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
Why java is call by value?
Explain the key functions of data binding?
What are java methods?
Can you pass by reference in java?
Define an enumeration?
What is difference between stringbuffer and string?
Difference between character constant and string constant in java ?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Why do people says “java is robust”?
How do you create immutable object in java?
How do listeners work?
What is a “stateless” protocol ?
What is a java applet? What is an interface?
Is java still relevant?
What is flush () in java?