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

Explain url encoding?

523


Difference between get and post in java servlets?

550


What’s the difference between genericservlet and httpservlet?

534


Why are servlets used?

534


What are different Authentication options available in Servlets.

571






What is a generic servlet?

524


Differentiate between get and post?

684


What do you mean by url pattern in servlet?

631


What is servlet in simple terms?

574


What is servlet api used for conneting database?

703


How we can call a jsp from the servlet?

537


What are all the advantages of servlet over cgi?

610


Why do you use session tracking in httpservlet?

639


What do you mean by servlet?

724


Why servlet is used as controller ? Not JSP? I want complete explation?

661