jsp前端语言

jstl

jar存放位置

 

jar包配置方式

 

迭代器:迭代输出。

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:forEach items="${lis}" var="lis">
            <tr align="center">
                <th>${lis.id}</th>
                <th>${lis.lastName}</th>
                <th>${lis.email}</th>
                <th>${lis.gender==0?"":""}</th>
                <th>${lis.department.departmentName}</th>
                <th>
                    <a href="#">Edit</a>
                    <a href="#">Delete</a>
                </th>
            </tr>
        </c:forEach>
Code

 

另一种

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

 JQuery

描写页面动态脚本用的

 

posted @ 2020-02-13 22:16  0123wtdd  阅读(229)  评论(0编辑  收藏  举报