dcsimg

How can I override the jspInit() and jspDestroy() methods within a JSP page?

Govind Seshadri

The jspInit() and jspDestroy() methods are each executed just once during the lifecycle of a JSP page and are typically declared as JSP declarations:

<%! 
	public void jspInit() {
		. . .
	}
%>

<%! 	
public void jspDestroy() {
		. . .	
	}
%>