-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathListEmployees.jsp
38 lines (36 loc) · 1.09 KB
/
ListEmployees.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List of Employees</title>
</head>
<body>
<h1>List Employees</h1>
<h3><a href="add.html">Add More Employee</a></h3>
<c:if test="${!empty employees}">
<table align="left" border="1">
<tr>
<th>Employee ID</th>
<th>Employee Name</th>
<th>Emp Address</th>
<th>Emp Designation</th>
<th>Emp Phone</th>
<th>Date of Joining</th>
</tr>
<c:forEach items="${employees}" var="employee">
<tr>
<td><c:out value="${employee.eid}"/></td>
<td><c:out value="${employee.ename}"/></td>
<td><c:out value="${employee.eaddress}"/></td>
<td><c:out value="${employee.edesg}"/></td>
<td><c:out value="${employee.ephone}"/></td>
<td><c:out value="${employee.edoj}"/></td>
</tr>
</c:forEach>
</table>
</c:if>
</body>
</html>