what is the difference between ServletContext and
ServletConfig

Answer Posted / saikiran

the scope of ServletConfig is With in the servlet
ServletContext is with in webApplication.
ServletConfig is an name and value pairs
it consist of
servletName,InitializationParameters,servletContext
ServletContext:
---------------
the application which is being deployed in the
server...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code to get the server information in servlet.

564


What is the difference between CGI and Servlet?

584


What is war file?

576


Is servlet a server side scripting language?

553


What are the types of servlets? Explain

670






Explain the war file?

606


Why do we need a constructor in a servlet if we use the init method?

511


What are common tasks performed by Servlet Container?

763


How can an existing session be invalidated?

657


What are different ways for authentication of servlet?

525


Can we use the constructor, instead of init(), to initialize servlet?

580


How many servlet objects are created?

559


Explain session tracking and its importance?

542


Explain web container.

565


What is the use of welcome-file-list?

567