File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

garbage collection in JSP

 
Shuaib Gill
Ranch Hand
Posts: 62
  • 0
  • 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: 13045
6
  • 0
  • 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:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic