• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

garbage collection in JSP

 
Shuaib Gill
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you delete objects in a JSP page? Is there a destroy() method you could use? Sample code would be very helpful...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you are talking about objects that get system resources other than memory, such as database connections or graphics contexts, all you have to do is ensure there are no references to the object. GC will take care of it.
This is just basic Java - are people trying to do JSP without the basics of Java?
Bill

------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic