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


Please Help Members By Posting Answers For Below Questions

What is difference between PrintWriter and ServletOutputStream?

982


What is the use of servlet wrapper classes?

866


Explain the architechure of a servlet?

809


What is a servlet-to-servlet communcation?

846


Which protocol will be used by browser and servlet to communicate

754


What is servlet lazy loading?

880


What is url encoding and url decoding

813


Whats the advantages using servlets over using CGI?

777


What is http servlet?

777


What is the capacity the doget can send to the server?

770


What’s the use of the servlet wrapper classes??

825


How do we translate jsp?

762


What is the type of method for sending request from http server?

778


What are the differences between forward() method and sendredirect() methods?

743


What do you mean by singlethreadmodel interface?

776