Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() about servlet life cycle ?

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a servlet is loaded which one is actually called - I still cant get this concept ??


or

public void init()
 
Tim Moores
Bartender
Posts: 2855
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one is part of the Servlet interface? What do you deduce from that?
 
Tim Moores
Bartender
Posts: 2855
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you deduce from that?


Also, have you read the javadocs of the GenericServlet.init() method?
 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajesh,

Refer the below link,

SERVLET LIFE CYCLE

http://www.servletworld.com/servlet-tutorials/servlet-life-cycle.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic