Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 benefits of using servlet over cgi?

1056


Explain the difference between servletconfig and servletcontext in servlet?

1036


What is the process to implement doget and dopost methods?

992


What is the difference between using getSession(true) and getSession(false) methods?

1043


What is the difference between Server and Container?

1252


How do we go with database connection and log4j integration in servlet?

1173


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

1155


Which event is fired at the time of project deployment and undeployment?

1320


What is the inter-servlet communication?

1174


How can the session in servlet be destroyed?

1157


Explain the difference between get and post method in servlet?

1140


Who is responsible to create the object of servlet?

1203


What is the difference between Difference between doGet() and doPost()?

1298


What is ServletConfig object?

1179


Write a program to show the functionality of servlets.

1012