每日日报8月14日
1.今天学习
编写 userlist.jsp
<%-- Created by IntelliJ IDEA. User: Administrator Date: 2019/9/24 Time: 20:41 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> <%@include file="../common/base.jsp"%> </head> <body> <!--上边--> <jsp:include page="../common/top.jsp"></jsp:include> <div class="container-fluid"> <div class="row"> <!--左边菜单栏--> <jsp:include page="../common/left.jsp"></jsp:include> <!--右边--> <div class="col-sm-10"> <ol class="breadcrumb"> <li class="active">菜单</li> <li class="active">vip客户信息</li> </ol> <div class="panel panel-default"> <div class="panel-heading">搜索</div> <div class="panel-body"> <form role="form" class="form-inline" action="<%=path%>/userServlet?method=findList"> <div class="form-group"> <label for="name">名称</label> <input type="text" class="form-control" id="name" placeholder="请输入名称"> </div> <div class="form-group"> <label for="name">状态</label> <select class="form-control"> <option>上架</option> <option>下架</option> </select> </div> <div class="form-group"> <button type="submit" class="btn btn-default">开始搜索</button> <a class="btn btn-info" href="<%=path%>/jsp/user/add.jsp">添加</a> </div> </form> </div> </div> <!--列表展示--> <div class="table-responsive"> <table class="table table-striped "> <thead> <tr> <th>id</th> <th>学号</th> <th>姓名</th> <th>操作</th> </tr> </thead> <tbody> <c:forEach items="${list}" var="info"> <tr> <td><input type="checkbox" name="pks" value="${info.id}"> </td> <td>${info.no}</td> <td>${info.name}</td> <td> <div class="btn-group"> <a href="<%=path%>/userServlet?method=edit&id=${info.id}" class="btn btn-default">编辑</a> <a href="<%=path%>/userServlet?method=del&id=${info.id}" class="btn btn-default">删除</a> </div> </td> </tr> </c:forEach> </tbody> </table> </div> <ul class="pagination" style="float: right;"> <li><a href="#">«</a> </li> <li class="active"><a href="#">1</a> </li> <li class="disabled"><a href="#">2</a> </li> <li><a href="#">3</a> </li> <li><a href="#">4</a> </li> <li><a href="#">5</a> </li> <li><a href="#">»</a> </li> </ul> </div> </div>
</div> <!-- 底部页脚部分 --> <jsp:include page="../common/footer.jsp"></jsp:include> </body> </html>
2.没有遇到问题
3.明天打算学习
创建控制器