📄 employeelist.jspx
字号:
<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core" > <jsp:directive.page contentType="text/html"/> <html> <head> <link href="main.css" rel="stylesheet" type="text/css"/> <title>Employees</title> </head> <body> <div class="titleDiv">Employee Maintenance Application</div> <h1>Employees</h1> <a href="?action=add">Add New Employee</a> <p> </p> <table class="borderAll"> <tr> <th>FirstName</th> <th>LastName</th> <th>Age</th> <th>Department</th> <th> </th> </tr> <c:forEach items="${employeeList}" var="emp" varStatus="status"> <tr class="${status.index%2==0?'even':'odd'}"> <td class="nowrap"><c:out value="${emp.firstName}"/></td> <td class="nowrap"><c:out value="${emp.lastName}"/></td> <td class="nowrap"><c:out value="${emp.age}"/></td> <td class="nowrap"> <c:out value="${emp.department.name}"> </c:out> </td> <td class="nowrap"> <a href="?action=edit&id=${emp.employeeId}" style="margin-left:8px; margin-right:8px;">Edit</a> <a href="?action=delete&id=${emp.employeeId}" style="margin-left:8px; margin-right:8px;">Delete</a> </td> </tr> </c:forEach> </table> </body> </html></jsp:root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -