• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling init()

 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Serv. Spec2.3

The container initializes the servlet instance by calling the init method of the Servlet interface with a unique (per servlet declaration) object implementing the ServletConfig interface.

What does it mean by UNIQUE (per servlet declaration) object?
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that it will give the servlet an instance of a ServletConfig, and it will belong to that class of servlet only.
[ February 26, 2002: Message edited by: BJ Grau ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic