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

Answer Posted / thennavan.m

YES.

ServletContext(): To communicate with the Servlet Container.
Eg: What server to running on the
Environment.Then when sever is
started,who is login the server all
the information to store the
"Event log"file ie log4j.

ServletConfig(): Pass the configuration information to the
Server to the servlet.

Session(): Session is a Object to track
the user interaction with
the web application across multiple
HttpSession.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of servlet

645


Tell us something about servletconfig interface.

592


What do you mean by request dispatcher in servlet? Also explain its methods.

622


Describe some assignments that are executed by servlet container?

603


Explain url encoding?

531






Explain mvc pattern.

602


Whats the advantages using servlets over using CGI?

596


What do you mean by session tracking and also explain its techniques?

508


What is the use of attribute in servlets?

554


Explain the different ways for servlet authentication?

539


Is servlet a controller?

585


What are the steps involved in placing a servlet within a package?

599


Which http method is said to be non-idempotent and idempotent?

620


What are the different session tracking techniques?

696


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

627