• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i override init() method in jsp

 
viveks shirbhate
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in interview he asked me how can i overide init() method in jsp generally we didnot override init method.
pl.reply
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can override init and destroy methods in jsp as follows:
<%!
public void jspInit() {
// do stuff
}
public void jspDestroy() {
// do stuff
}
%>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!