Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Init() & destroy() in jsp

 
Dean Jones
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi how it is possible to have the init(),destroy() functionality in a JSP PAge
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dean
You need the jspInit() and jspDestroy() methods from the jspPage interface.
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes just override the jspInit() and jspDestroy() methods using <%! %> tags to customize your JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic