Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

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...

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
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?

author of:
I agree. Here's the link:
subject: garbage collection in JSP
It's not a secret anymore!