Custom JSP taglib. Tag lastWish lets you associate some action (method's call) with session closing. So you can for example free some resources, remove your beans etc. You have to provide some object and its method that should be called.
<%@ taglib uri="taglib.tld" prefix="do" %>
<!-- open some file -->
java.io.File f=new java.io.File("my_file.txt");
<!-- delete it at the end of user session -->
<do:lastWish object="<%=f%>" method="delete"/>
here f.delete() call will be executed at the end of session life time. So this tag will simply perform file delete operation.
Custom tag lets you plan some action (method's call) after session closing. Parameters are:
1) object describes your object
See also Coldtags suite - the largest collection of custom JSP tags.
Also in Coldtags: