@Ayush
1. Container(Tomcat) calls default constructor of your servlet. Even
if you have overloaded constructors still only default is called.
2. The container then calls init() method and passes servlet config
object into it which contains properties local to a servlet defined in
the web.xml.
3. On arrival of a request the service() method of the servlet is
called which depending on the request type calls doGet doPost

On Nov 13, 7:19 am, Ayush Mittal <ayushmittal2...@gmail.com> wrote:
> can anyone explain me how exactly servlet object is created

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to