Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in servet life cycle

 
Khadija Lokhandwala
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to HFSJ for the prepartion of the SCWCD exam. I am on the 5th Chapter and have a doubt

In the earlier chapters a no arg init() method is used to initialise a servlet. But un the 5th chapter a init(ServletConfig) is used to intilialise the servlet.

So is the lifecycle like this
init(servletConfig)--> init()--->service()-->destroy().


Also in case of there being two service methods in the HTTPServletClass what is the purpose for the same??


Thanks in advance.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic