The moose likes JSP and the fly likes Init() & destroy() in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Init() & destroy() in jsp" Watch "Init() & destroy() in jsp" New topic

Init() & destroy() in jsp

Dean Jones

Joined: Jun 18, 2002
Posts: 24
hi how it is possible to have the init(),destroy() functionality in a JSP PAge
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
You need the jspInit() and jspDestroy() methods from the jspPage interface.

Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Yes just override the jspInit() and jspDestroy() methods using <%! %> tags to customize your JSP.
Don't get me started about those stupid light bulbs.
subject: Init() & destroy() in jsp
Similar Threads
Doubt on Jsp methods that are invoked by servlet container
jspInit() and jspDestroy()
Basic reason
JSP Page source - Doubt?
Sequence of Page loading