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
What are the steps that are involved in using the httpservlet class?
What is the use of servletconfig interface?
What do you mean by annotations in servlet?
What are the uses of servlet and what is servlet chaining?
How can we refresh automatically when new data has entered the database?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is URL Encoding?
explain the advantages of servlet life cycle?
What is a generic servlet?
Can you create a deadlock condition on a servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Explain the war file?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Explain the differences between jsp and servlet.
Can we override destroy method in servlet?