Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How Servlet Container creates an instance of your Servlet

 
Rakesh Mehra
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How Servlet Container creates an instance of your Servlet
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Logg Man",
Please check your private messages.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the container can't know about your servlet when it's compiled, it most likely gets the package and class name when it parses your deployment descriptor and then instanciates it by calling Class.forName("name of your servlet").newInstance().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!