generated from ohjelmointi2/embedded-tomcat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartistList.jsp
33 lines (27 loc) · 858 Bytes
/
artistList.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
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Music | Artists</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<h1>All artists</h1>
<form method="post">
<label for="name">Add new artist to list: </label><br>
<input id="formName" name="name" type="text" required placeholder="type artist here..." autofocus />
<input type="submit" value="Add to list" />
</form>
<ol>
<c:forEach items="${ artists }" var="artist">
<li>
<a href="<c:out value = "/albums?ArtistId=${ artist.getId() }" />" >
<c:out value="${ artist.getName() }"></c:out>
</a>
</li>
</c:forEach>
</ol>
</body>
</html>