Detailed tutorial on Java Web practice (XXIV) practice of JSTL tags and El expressions

Miss Zhu 2022-02-13 08:36:55 阅读数:999

detailed tutorial java web practice

         In the last article , We explained JSTL Labels and EL Expression usage , This article , We apply what we have learned to the whole project .
         The following students will show the of the interface JSP Replace with JSTL and EL.
 Insert picture description here
among EL Expression is Java Web Self contained ,JSTL Need to add jar package , Need to be in lib Lower join jstl.jar.
 Insert picture description here
In use JSTL Introduce new pages into the core library :

<%@taglib uri="" prefix="c"%>

Building tables :

<table id="data" class="table table-striped table-bordered">
<th> full name </th>
<th> Gender </th>
<th> Age </th>
<c:forEach items="${list}" var="stu">
<tr class="stu">
<td>${ }</td>
<td>${ }</td>
stu.gender }</td>
stu.age }</td>
copyright:author[Miss Zhu],Please bring the original link to reprint, thank you.