Aufgabe 3: kleinere fixes
This commit is contained in:
parent
410004c557
commit
93ab2f3039
@ -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) {
|
||||
%>
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user