Aufgabe 3: kleinere fixes
This commit is contained in:
parent
410004c557
commit
93ab2f3039
|
@ -10,7 +10,7 @@
|
||||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
||||||
String idValue = request.getParameter("id");
|
String idValue = request.getParameter("id");
|
||||||
Category category;
|
Category category;
|
||||||
Database db = Database.getInstance();
|
|
||||||
if (idValue == null) {
|
if (idValue == null) {
|
||||||
%>
|
%>
|
||||||
<div class="m-container">
|
<div class="m-container">
|
||||||
|
@ -21,6 +21,7 @@
|
||||||
<%
|
<%
|
||||||
} else {
|
} else {
|
||||||
long id = Long.valueOf(idValue);
|
long id = Long.valueOf(idValue);
|
||||||
|
Database db = Database.getInstance();
|
||||||
category = db.getCategory(id);
|
category = db.getCategory(id);
|
||||||
if (category != null) {
|
if (category != null) {
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="preview">Grobspezifikation</a></li>
|
<li><a href="preview">Grobspezifikation</a></li>
|
||||||
<li><a href="booklist">Backend</a></li>
|
<li><a href="booklist">Backend</a></li>
|
||||||
|
<li><a href="categories.jsp">Kategorienübersicht</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue