SSM:六、基于JSTL标签库对分页数据的前端显示
新建一个list.jsp,引入相应的标签库以及配置服务器的请求路径。
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
//服务器请求的路径
pageContext.setAttribute("APP_PATH", request.getContextPath());
%>
搭建好页面框架以及利用bootstrap前端样式框架对页面进行渲染。
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>员工的增删改查</h2>
</div>
</div>
<div class="row">
<div class="col-md-4 col-md-offset-8">
<button class="btn btn-primary">编辑</button>
<button class="btn btn-danger">删除</button>
</div>
</div>
<div class="row">
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>