What is the difference between servlet config and servlet
context.

Answer Posted / sulthansheriff

Servlet Context :
In servlet programming, the servlet context is the
environment where the servlet runs. The servlet container
creates a ServletContext object that you can use to access
information about the servlet's environment.

ServletConfig:
A servlet configuration object used by a servlet container
used to pass information to a servlet during initialization.

Is This Answer Correct ?    89 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1753


Is servlet synchronized?

611


How we can get ip address of client in servlet?

550


How does Cookies work in Servlets?

659


Which method of the httpservletrequest object is used?

578






If my browser does not support cookie, and my server sends a cookie instance what will happen?

659


What are Servlets?

609


How do we call one servlet from another servlet?

598


Explain the features are in servlet 3?

608


What do you mean by cgi and what are its drawbacks?

541


What is called Scriptlet?

569


Difference between doget and dopost?

690


What are the disadvantages of storing session state in cookies?

635


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

557


What is cookie in servlet?

603