今天完成内容:
学习web
查询完成 继续页面优化
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="dao.UserDao,bean.User"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<title>智慧航空</title>
</head>
<style>
td {
text-align: center;
}
.form-control {
90%;
}
</style>
<body>
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){
%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
<table class="table table-hover table-striped table-bordered table-sm"
id="resultshow">
<tr>
<td colspan="6">
<h1>学生管理系统</h1>
</td>
</tr>
<tr>
<td>dp</td>
<td>ap</td>
<td>ndate</td>
<td>dtime</td>
<td>atime</td>
<td>dname</td>
<td>aname</td>
<td>flightname</td>
<td>flightspace</td>
<td>rate</td>
<td>space</td>
</tr>
<c:forEach items="${list}" var="item">
<tr>
<td>${item.dp}</td>
<td>${item.ap}</td>
<td>${item.ndate}</td>
<td>${item.dtime}</td>
<td>${item.atime}</td>
<td>${item.dname}</td>
<td>${item.aname}</td>
<td>${item.flightname}</td>
<td>${item.flightspace}</td>
<td>${item.rate}</td>
<td>${item.price}</td>
</tr>
</c:forEach>
</table>
</body>
</html>
看视频
遇到问题:
无
明日目标:
学习web端的开发
学习css