What is the difference between servlet config and servlet
context.
Answer Posted / ganesh
ServletContext object is used to give the
initparameter(Context) values to each servlet written in a
web appliction
but in servletConfig is used to give initparameter values to
only to specific servlet in which they are mentioned at the
time in web.xml file
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can the session in servlet be destroyed?
What is servlet and how it works?
What are the various ways of session supervision in servlets?
Can servlet have a constructor ?
What is api in servlet?
What do you mean by cgi and what are its drawbacks?
What is the directory structure of a war file?
Why servlet is faster than jsp?
What are the differences between the servletconfig interface and the servletcontext interface?
What is the main purpose of java servlets?
Is it good idea to create servlet constructor?
What are the types of Session Tracking ?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Difference between GET and POST?
How can you push data from an Applet to a Servlet?