• Post Reply Bookmark Topic Watch Topic
  • New Topic

Call destroy() method inside the doGet() or doPost() Methods

 
Shivaprakash Shettihalli
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if i call destroy() method inside the doGet() or doPost() Methods
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever code there is in your destroy method will be executed.


The destroy method is a callback method; a placeholder for you to put any code that you want to be run when your servlet is taken out of service by the servlet container. It's not meant to be called by you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!