What is the difference between servlet config and servlet
context.

Answer Posted / gaurav chauhan

You can take it like as every servlet has the same
ServletContext but every servlet has its own ServletConfig.

For Example: If you want the name of your company and email
address appear in all pages of your web applications then
you use ServletContext.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet and how it works?

508


Why doesn’t a servlet include main()? How does it work?

633


Explain the concept of ssi ?

595


What is the inter-servlet communication?

704


Is servlet a framework?

545






What are important features of Servlet 3?

601


How to rectify errors in java servlet while compilation?

523


What is the use of send redirect () method?

590


how many jsp scripting elements are there and what are those?

544


What is the difference between 2 types of servlets?

650


Why doesn’t a servlet include main()?

563


What are the types of protocols supported by httpservlet ?

708


Why servlet is mostly used?

750


What are the uses of servlet and what is servlet chaining?

563


What is getservletcontext?

553