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...

What is the difference between servlet config and servlet
context.

Answer Posted / khushbu ajmera

A: ServletContext: Defines a set of methods that a servlet
uses to communicate with its servlet container, for example,
to get the MIME type of a file, dispatch requests, or write
to a log file.The ServletContext object is contained within
the ServletConfig object, which the Web server provides the
servlet when the servlet is initialized

ServletConfig: The object created after a servlet is
instantiated and its default constructor is read. It is
created to pass initialization information to the servlet.

Is This Answer Correct ?    13 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many objects of a servlet is created?

1217


How will two or three servlets interact or communicate with each other?

1395


What is meant by session? Tell me something about httpsession class?

957


What are the benefits of using servlet over cgi?

980


Differentiate between the print writer and servlet output stream?

953


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

1119


Differentiate between the get and post method

1004


How do you communicate in between Applets and Servlets?

1020


What's the difference between servlets and applets?

988


How does java thread pool work?

1017


What is Servlet API used for connecting database?

1043


What is a servlet?

1071


Why don't we write a constructor in a servlet?

990


Can we use threads in Servlets?

1078


What is the structure of the http response

1115