Aufgabe 3: kleinere fixes

This commit is contained in:
Johannes Theiner 2019-05-03 09:32:39 +02:00
parent 410004c557
commit 93ab2f3039
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
String idValue = request.getParameter("id");
Category category;
Database db = Database.getInstance();
if (idValue == null) {
%>
<div class="m-container">
@ -21,6 +21,7 @@
<%
} else {
long id = Long.valueOf(idValue);
Database db = Database.getInstance();
category = db.getCategory(id);
if (category != null) {
%>

View File

@ -7,6 +7,7 @@
<ul>
<li><a href="preview">Grobspezifikation</a></li>
<li><a href="booklist">Backend</a></li>
<li><a href="categories.jsp">Kategorienübersicht</a></li>
</ul>
</body>
</html>