This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lifecycle diff between HTTP servlet and generic

 
Hari babu
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any diffrence between the HTTP servlet and generic servlet's life cycle ?
Hari
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The basic life cycle is the same:
1.init method run when servlet engine needs an instance and before any requests.
2. requests go through the service method - which has default behaviour in HttpServlet, but must be provided by the programmer in GenericServlet.
3. destroy method is called by the servlet engine before it discards the instance.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic