河南大学吧 关注:642,849贴子:21,340,902
  • 1回复贴,共1

求学霸.下面这个一直报错

只看楼主收藏回复

<%@page contentType="text/html;charset=UTF-8" %>
<%@page import="dao.studentdao"%>
<%@page import="dao.studentdaoimple"%>
<%@page import="domain.student"%>
<%@page import="java.util.List" %>
<html>
<head>
<title>学生基本信息</title>
</head>
<%
dao.studentdao dao=new dao.studentdaoimple();
List<student>list=dao.getstudents();
%>
<body>
<table border="1">
<caption>
学生基本信息
</caption>
<tr>
<td colspan="6"align="right"><a href="addstudent.jsp">新增</a>
</td>
</tr>
<tr>
<th width="10%">序号</th>
<th width="20%">学号</th>
<th width="20%">姓名</th>
<th width="20%">性别</th>
<th width="20%">出生日期</th>
<th width="10%">删除</th>
</tr>
<%
student student;
for(int i=0;i<list.size();i++){
student=list.get(i);
%>
<tr>
<td><%= student.getid()%></td>
<td><%= student.getsno()%></td>
<td><%= student.getsname() %></td>
<td><%= student.getsex()?"男":"女"%></td>
<td><%= student.getsbirthdate()%></td>
<td>
<div><a href="deletestudent.jsp? id=" <%=student.getid()%> >删除</a></div>
</td>
</tr>
<%
}
%>
</table>
</body>
</html>


1楼2014-11-19 16:42回复
    @z道哥


    IP属地:广东来自Android客户端2楼2014-11-19 16:46
    回复