我的jsp页面编译没有出错 为什么运行时没有任何的显示
高手指教啊
我用tomcat的
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="../error/error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言</title>
<script src="../image/com.js" language="javascript"/>
<jsp:useBean id="con" class="useBean.Link_db" scope="request"/>
</head>
<body>
k2eroirwio;rufw;irjhep
<table width="690" border="1" cellpadding="1" cellspacing="1">
<tr>
<td height="27" colspan="4" align="center" valign="middle" ><a href="#"onclick="openmas()">增 加 留 言</a></td>
</tr>
<%
String sqli="select * from mas order by 留言id DESC";
Connection conn=con.getCon();
Statement state=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ResultSet rs=state.executeQuery(sqli);
String temp=(String)session.getAttribute("admin");
String color="";
int sum;
int sumpage;
int pages;
int span=4;
int pagesRec;
int i=0;
sum=rs.getRow();
out.print(String.valueOf(sum));
if(sum%span==0){
sumpage=sum/span;
}
else{
sumpage=sum/span+1;
}
String strPages=(String)request.getParameter("pages");
if(strPages==null){
pages=1;
}
else{
pages=Integer.parseInt(strPages);
}
if(pages<1) pages=1;
if(pages>sumpage)pages=sumpage;
out.print(String.valueOf(pages));
pagesRec=(pages-1)*span+1;
rs.absolute(2);
rs.previous();
while(rs.next()){
int id=rs.getInt("留言id");
String username=rs.getString("留言人");
String time=rs.getString("留言时间");
String topic=rs.getString("留言主题");
String email=rs.getString("留言人Email");
String masinfo=rs.getString("留言内容");
if(masinfo==null) masinfo="";
if(color==""){
color="#ffffff";
}else{
color="";
}
%>
<tr bgcolor="<%=color%>">
<td width="83" height="27" >留言人 :</td>
<td width="146" height="27" ><%=username%></td>
<td width="94" height="27" >留言主题 : </td>
<td width="344" height="27" ><%=topic%></td>
</tr>
<tr bgcolor="<%=color%>">
<td width="83" height="27" >日期</td>
<td width="146" height="27" ><%=time%></td>
<td colspan="2" rowspan="3" ><%=masinfo%></td>
</tr>
<tr bgcolor="<%=color%>">
<td width="83" height="27" >email</td>
<td width="146" height="27"><%=email%></td>
</tr>
<tr bgcolor="<%=color%>">
<td width="83" height="27" >处理</td>
<td width="146" height="27" >删除留言</td>
<%
i++;if(i==span) break;
}
try{
con.close();
conn.close();
}catch(Exception e){
}
%>
</tr>
<tr>
<td height="27" colspan="4" align="center">当前:[第<%=pages%>页] [共<%=sumpage%>页] [<a href="masview.jsp?pages=1">首页</a>] [<a href="masview.jsp?pages=<%=(pages-1)%>">上一页</a>] [<a href="masview.jsp?pages=<%=(pages+1)%>">下一页</a>] </td>
</tr>
</table>
</body>
</html>