Java Tutorial/JSP/JSP init destroy
Версия от 17:44, 31 мая 2010; (обсуждение)
Using jspInit and jspDestroy
<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>