Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?

Answer Posted / nisha

Servlet config is one per servlet and servlet context is one for
the whole webapplication.

Servlet config is used to pass deploy time information to servlet
where servlet context can be used to get information about the
container,server.

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What mechanisms are used by a Servlet Container to maintain session information?

919


What is the dispatcher servlet?

753


What do you mean by url pattern in servlet?

883


What is the directory structure of web application?

755


Where do you define dispatcherservlet?

776


What is the difference between Server and Container?

933


Explain the custom jsp tags and the beans.

825


Which httpsession object is used to view and manipulate information about a session?

972


What is meant by cookies?

878


Can we get PrintWriter and ServletOutputStream both in a servlet?

933


What is ServletConfig object?

870


What is the capacity the doget can send to the server?

837


How can we upload the file to the server using servlet?

783


Explain in brief the directory structure of a web application?

836


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

835