This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Init() & destroy() in jsp" Watch "Init() & destroy() in jsp" New topic
Author

Init() & destroy() in jsp

Dean Jones
Greenhorn

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
Dean
You need the jspInit() and jspDestroy() methods from the jspPage interface.


Dave
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Yes just override the jspInit() and jspDestroy() methods using <%! %> tags to customize your JSP.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Init() & destroy() in jsp