What is the difference between servlet config and servlet
context.
Answer Posted / v.tulasiprasad
servlet config is used to obtain configuration data when it
is loaded in to the application server.
for each servlet servlet config will be indipendent and the
configuration of a servlet is intialized in the servlet
config file.
servlet context is used to obtain the information about the
environment in which it is running.one application have only
one servlet context file.through this servlet context file
we can acces servlets in that application.
| Is This Answer Correct ? | 10 Yes | 14 No |
Post New Answer View All Answers
What is new in ServletRequest interface ? (Servlet 2.4)
What is http servlet?
What is the web server used for running the Servlets?
What is the use of httpservletrequestwrapper?
Is tomcat a servlet container?
What is servlet and list its types?
What is servlet invoker?
What are the steps involved in placing a servlet within a package?
Write a servlet to upload file on server.
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Which event is fired at the time of session creation and destroy?
List out difference between a JavaBean from a Servlet?
What is the life cycle of a servlet?
Should I override the service() method?
Explain the architechure of a servlet?