<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
+<jsp:setProperty name="controller" property="basket" value="${basket}" />
+<%controller.init();%>
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
+ <link rel="stylesheet" href="${basePath}/style.css" type="text/css"/>
<title>Pizza-Service - Kategorien</title>
</head>
<div id="content">
<div class="para">
- <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
+ <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
<table class="table">
<thead>
<tr>
</thead>
<tbody>
- <c:forEach var="category" items="<%=controller.getCategories()%>">
+ <c:forEach var="category" items="${controller.categories}">
<tr>
<td>
<input class="input" type="checkbox" name="<%=CategoryFrontend.COLUMN_ID%>[${category.getCategoryId()}]" value="1" />
</td>
<td>
- ${category.decodedTitle()}
+ ${category.decodedTitle}
</td>
<td>
${app.generateLinkForParent(category)}
</div>
<div class="para">
- <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
+ <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
<div class="table">
<div class="table_header">
Neue Kategorie hinzufügen:
<%@page import="org.mxchange.pizzaapplication.database.frontend.product.ProductFrontend"%>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
+<%controller.init();%>
+
<c:set var="basePath" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<select class="select" name="<%=CategoryFrontend.COLUMN_PARENT%>" size="1">
<option value="">Ist oberste Kategorie</option>
<c:forEach var="category" items="${controller.categories}">
- <option value="${category.getCategoryId()}">${category.decodedTitle()}</option>
+ <option value="${category.getCategoryId()}">${category.getDecodedTitle()}</option>
</c:forEach>
</select>