日期:2014-05-18  浏览次数:20910 次

为什么跳转到这个页是空白的,急
这个是我的写的源代码,为什么掉转到这个页面,老是显示空白,又不报错了,搞了几个小时都呢搞明白,明天我要被考核了,这个是要检查的。在线等

<%@ page contentType="text/html; charset=gb2312"%>
<%@ include file="conn.jsp"%>
<html>
<head><title>
考勤信息
</title></head>
<body>

<%  
  rs=null;
  try{
String s = request.getParameter("bh");
sql = "SELECT * FROM work_check_categories WHERE check_no ='"+s+"'";
rs=smt.executeQuery(sql);
%><form name ="form" action="editsuc.jsp?bh=<%=s%>" method="post" align="center">
<table>
<% 
while(rs.next()) { 
%>
<tr>
<td>编&nbsp;&nbsp;号</td>
<td><%=rs.getObject(1)%></td>
</tr>
<tr>
<td>考勤类别</td>
<td><input type ="text" name="name" value="<%=rs.getObject(2)%>"></td>
</tr>
<tr>
<td>罚&nbsp;&nbsp;金</td>
<td>&nbsp;&nbsp;<input type="text" name= "name1" value="<%=rs.getObject(3)%>"></td> 
</tr>
<tr>
<td><input type = "submit" value = "修改"></td>
<td><input type = "reset" value = "恢复"></td>
</tr>
</table>  
</form>
  <%}
  } catch(Exception e) {
e.getMessage();
  }
  %>
  </body>
</html>

------解决方案--------------------
你的rs、smt游标声明过么? 要看看<%@ include file="conn.jsp"% > 这个页面了
也没有看到 connection
------解决方案--------------------
你注意下你的form中的action,单引号和双引号的使用,我之前有过这样的经验