wood burning stoves*
The moose likes Servlets and the fly likes garbage collection in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "garbage collection in JSP" Watch "garbage collection in JSP" New topic
Author

garbage collection in JSP

Shuaib Gill
Ranch Hand

Joined: May 29, 2001
Posts: 62
How do you delete objects in a JSP page? Is there a destroy() method you could use? Sample code would be very helpful...


programmer77
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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:
 
Don't get me started about those stupid light bulbs.
 
subject: garbage collection in JSP
 
Similar Threads
Forms in servlet
JSP
JSP and javascript
javascript and include files?
Is there a way to stop websphere from compiling jsps in a particular folder?