How to override jspInit() method

I made a video tutorial of how to override jspInit() method using screentoast.com. Unfortunately, the website has gone done, so I just put the notes here.

Like jspDestroy(), jspInit() is executed just once during the lifecycle of a JSP page. It is typically declared as JSP declarations. Here is a simple code for doing that.

<%! public void jspInit() {   
   //whatever you want jspInit to do
 }  
%> 
<html>
...
</html>

Category >> JSP/JSF  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
<pre><code> 
String foo = "bar";
</code></pre>

  1. dhara on 2010-9-20

    HELLO……….

Leave a comment

*