what is the difference between ServletContext and
ServletConfig

Answer Posted / saurabh kandpal

servletcontext is for a individual servlet

servlet config is for the whole webapplication which may
include diffrent servlet context

Is This Answer Correct ?    3 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the jar and war files in servlet?

557


What is the use of servletconfig interface?

560


Explain servlet events?

566


Why is Servlet so popular?

618


How to find whether a parameter exists in the request object?

668






What do you mean by default initialization in java servlet?

606


What are all the ways for session tracking?

595


What is meant by cookies?

614


Can you refresh servlet in client and server-side automatically?

624


What do you mean by cgi in servlet?

633


Why jsp is better than servlet?

535


How do you deal property files in servlet?

606


What are the annotations used in servlet 3?

580


How does java thread pool work?

548


Which HTTP method is non-idempotent?

618