2007-8-14 18:03:23 org.apache.jasper.runtime.PageContextImpl release
警告: Internal error flushing the buffer in release()
参照别人的代码拼凑的个JSP网页,控制台出现上述错误。
代码如下:麻烦大家帮找找问题,顺便看下有哪些不合理的地方?鞠躬谢谢~
----------------------------------
<%@ page contentType= "text/html; charset=gb2312 "%>
<%@ page import= "java.sql.* "%>
<%@ page import= "java.util.* "%>
<%@ page import= "java.util.Date "%>
<%@ page import= "java.text.* "%>
<%@ include file= "inc/conn.jsp "%>
<%
//request.setCharacterEncoding( "GB2312 ") ;
%>
<html>
<head>
<title> </title>
</head>
<body>
<%
String name=null;
name = (String)session.getAttribute( "name ");
if(name== " "||name==null)
{
out.print( "你必须登录才行噢 ");
%>
<center>
<a href= "register.jsp "> 注册 </A>
<a href= "login.jsp "> 登录 </a>
</center>
<%
}
else
{
out.print( "Hi, "+ name + " 欢迎您回来! ");
%>
<a href= "logout.jsp "> 注销 </a>
<hr />
<br>
<br>
<table width= "760 " border=1 cellspacing=0 bordercolordark=#CCCCCC bordercolor=#ffffff align= "center ">
<tr>
<center>
<td width= "6% "> ID </td>
<td width= "10% "> 姓名 </td>
<td width= "9% "> 妮称 </td>
<td width= "7% "> 密码 </td>
<td width= "15% "> Email </td>
<td width= "5% "> 性别 </td>
<td width= "32% "> 登陆时间 </td>
<td width= "16% "> IP </td>
</center>
</tr>
<%
try
{
String sql= "select * from staff order by id DESC ";
ResultSet rs=stmt.executeQuery(sql);
int intPageSize; //一页显示的记录数
int intRowCount; //记录总数
int intPageCount; //总页数
int intPage; //待显示页码
String strPage;
int i;
//设置一页显示的记录数
intPageSize = 10;