This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes garbage collection in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 12269
    
    1
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:


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: garbage collection in JSP
 
Similar Threads
JSP and javascript
Is there a way to stop websphere from compiling jsps in a particular folder?
javascript and include files?
Forms in servlet
JSP