Using jspInit and jspDestroy : JSP init destroy « JSP « Java Tutorial
- Java Tutorial
- JSP
- JSP init destroy
<HTML>
<HEAD>
<TITLE>Using jspInit and jspDestroy</TITLE>
</HEAD>
<BODY>
<H1>Using jspInit and jspDestroy</H1>
<%!
int number;
public void jspInit()
{
number = 5;
}
public void jspDestroy()
{
number = 0;
}
%>
<%
out.println("The number is " + number + "<BR>");
%>
</BODY>
</HTML>
23.35.JSP init destroy |
| 23.35.1. | Using jspInit and jspDestroy |