page contentType text html charset UTF-8 language java taglib uri http

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id = "idFaculty" class= "javatraining.service.dao.entity.Faculty"/>
<html>
<head>
<title>Список </title>
</head>
<body>
<h3>Все факультеты:</h3>
(<a href="add">добавить факультет</a>)
<ol>
<c:forEach var="faculty" items="${faculties}" >
<li>
${faculty.getId()} ${faculty.getFacultyName()}
<a href="add?edit=${faculty.getId()}">редактировать</a> | <a href="delete?id=${faculty.getId()}">удалить</a>
</li>
</c:forEach>
</ol>
</body>
</html>