jsp学习笔记
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%><HTML>
<HEAD>
<TITLE> 声明测试</TITLE>
</HEAD>
<body>
<center><table bgcolor="jidwa" border="l">
<%!
public int count;
public String info()
{
return "hello";
}
%>
<% out.println(count++); %>
<% out.println(info()); %>
<%= info() %>
<%
for(int i=0; i<10; i++)
{
%>
<tr>
<td>
循环值:
</td>
<td><%=i%></td>
</tr>
<%
}
%>
</table>
</center>
</body>
</html>
作者:aini_420
补充:Web开发 , Jsp ,