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 do I support both get and post from the same servlet?

1211


What do you understand by mime type?

996


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1069


Are Servlets Thread Safe? How to achieve thread safety in servlets?

972


Can you create a deadlock condition on a servlet?

1085


How to handle exceptions thrown by application with another servlet?

1091


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

1087


What must be implemented by all servlets?

1103


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

1049


Describe the phases of servlet lifecycle?

1071


What is servlet used for?

1148


What is api in servlet?

1023


When jsessionid is created?

1047


Is it possible to have a constructor inside the servlet?

1015


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

1082