Hi,

I'm trying to overwrite the jspDestroy() method to clean up files generated by
my jsp pages. Can anyone tell me how to do this and where to put the method?

I added a method in jsp page:
<%!   public void jspDestroy() {

          Httpsession session = request.getSession();
          new File((String)session.getValue("outfile1")).delete();
          new File((String)session.getValue("outfile2")).delete();
      }

%>

The compiler complains unrecognized variable "request".

Thanks much.

Tiana

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to