Author : Roland Haeder
--%>
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page import="org.mxchange.pizzaapplication.category.Category"%>
<%@page import="org.mxchange.pizzaapplication.database.frontend.category.CategoryFrontend"%>
<%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
<%@page import="org.mxchange.pizzaapplication.beans.PizzaBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@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" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<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">
<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 - Administration</title>
</head>
<%@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" />
+<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">
<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 - Produkte</title>
</head>
<div id="content">
<div class="para">
- <form action="<%=request.getContextPath()%>/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="form" method="post">
+ <form action="${basePath}/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="form" method="post">
<table class="table">
<thead>
<tr>
</thead>
<tbody>
- <c:forEach var="product" items="<%=controller.getAllProducts()%>">
+ <c:forEach var="product" items="${controller.allProducts}">
<tr>
<td>
- ${product.getItemId()}:
- <input class="input" type="checkbox" name="product[${product.getItemId()}]" value="1" />
+ ${product.itemId}:
+ <input class="input" type="checkbox" name="<%=ProductFrontend.COLUMN_ITEM_ID%>[${product.itemId}]" value="1" />
</td>
<td>
- ${product.getTitle()}
+ ${product.title}
</td>
<td>
- ${product.getPrice()}
+ ${product.price}
</td>
<td>
${app.getPrintableProduktCategory(product)}
</div>
<div class="para">
- <form action="<%=request.getContextPath()%>/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="add" method="post">
+ <form action="${basePath}/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="add" method="post">
<div class="table">
<div class="table_header">
Neues Produkt hinzufügen:
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="date" class="java.util.Date" />
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<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">
<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 - Fehler</title>
</head>
<jsp:useBean id="item" scope="request" class="org.mxchange.pizzaapplication.item.basket.BasketItem" type="AddableBasketItem" />
<jsp:setProperty name="item" property="*" />
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<%
// Get amount from item
Long amount = item.getAmount();
<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 - Form-Handler</title>
</head>
<%@page import="org.mxchange.pizzaapplication.exceptions.CategoryTitleAlreadyUsedException"%>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<%
// Handle forms
controller.doAdminHandleCategoryForms(request, response);
<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 - Form-Handler</title>
</head>
<%@page import="org.mxchange.pizzaapplication.product.Product"%>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<%
// Handle forms
controller.doAdminHandleProductForms(request, response);
<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 - Form-Handler</title>
</head>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<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">
<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 - Impressum</title>
</head>
<%@page import="org.mxchange.pizzaapplication.item.basket.BasketItem"%>
<%@page import="org.mxchange.pizzaapplication.item.AddableBasketItem"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="basket" uri="http://mxchange.org/pizza-service/tags/basket" %>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
<jsp:setProperty name="controller" property="basket" value="${basket}" />
<%controller.init();%>
<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 - Willkommen</title>
</head>
<tbody>
<tr>
<td class="table_data_column">
- <a href="<%=request.getContextPath()%>/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
+ <a href="${basePath}/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
</td>
<td class="table_data_column">
<%=item.getAmount()%>
continue;
}
%>
- <form action="<%=request.getContextPath()%>/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
+ <form action="${basePath}/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
<table class="table">
<tbody>
<tr>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
+<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">
<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 - Datenschutzbestimmungen</title>
</head>
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
<select class="select" name="<%=CategoryFrontend.COLUMN_ID%>" size="1">
- <c:forEach var="category" items="<%=controller.getCategories()%>">
+ <c:forEach var="category" items="${controller.categories}">
<option value="${category.getCategoryId()}">${category.decodedTitle()}</option>
</c:forEach>
</select>
Created on : 11.08.2015, 12:28:03
Author : Roland Haeder
--%>
+
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<div class="footer">
<ul class="footer_nav">
- <li><a href="<%=request.getContextPath()%>/">Zur Webseite</a></li>
+ <li><a href="${basePath}/">Zur Webseite</a></li>
</ul>
</div>
Author : Roland Haeder
--%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<div id="menu">
<ul>
- <li><a href="<%=request.getContextPath()%>/admin/" title="Eingangsseite">Home</a></li>
- <li><a href="<%=request.getContextPath()%>/admin/category.jsp" title="Kazegorie">Kategorie</a></li>
- <li><a href="<%=request.getContextPath()%>/admin/product.jsp" title="Produkt">Produkt</a></li>
+ <li><a href="${basePath}/admin/" title="Eingangsseite">Home</a></li>
+ <li><a href="${basePath}/admin/category.jsp" title="Kazegorie">Kategorie</a></li>
+ <li><a href="${basePath}/admin/product.jsp" title="Produkt">Produkt</a></li>
</ul>
<ul>
- <li><a href="<%=request.getContextPath()%>/admin/logout.jsp" title="Ausloggen">Ausloggen</a></li>
- <li><a href="<%=request.getContextPath()%>/" title="Zur Webseite, aber eingeloggt bleiben">Webseite aufrufen</a></li>
+ <li><a href="${basePath}/admin/logout.jsp" title="Ausloggen">Ausloggen</a></li>
+ <li><a href="${basePath}/" title="Zur Webseite, aber eingeloggt bleiben">Webseite aufrufen</a></li>
</ul>
</div>
<select class="select" name="<%=CategoryFrontend.COLUMN_PARENT%>" size="1">
<option value="">Ist oberste Kategorie</option>
- <c:forEach var="category" items="<%=controller.getCategories()%>">
+ <c:forEach var="category" items="${controller.categories}">
<option value="${category.getCategoryId()}">${category.decodedTitle()}</option>
</c:forEach>
</select>
Created on : 11.08.2015, 12:28:03
Author : Roland Haeder
--%>
+
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<div id="login_form">
- <form action="<%=request.getContextPath()%>/form_handler/do_login.jsp" accept-charset="utf-8" id="form" method="post">
+ <form action="${basePath}/form_handler/do_login.jsp" accept-charset="utf-8" id="form" method="post">
<div class="table">
<div class="table_header">
Bitte geben Sie Ihre Kundennummer und Passwort ein:
<%@page import="org.mxchange.pizzaapplication.beans.PizzaBean"%>
<%@page import="org.mxchange.pizzaapplication.beans.customer.CustomerBean" %>
-<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.beans.customer.PizzaServiceCustomerBean" type="CustomerBean" />
<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.PizzaServiceBean" type="org.mxchange.pizzaapplication.beans.PizzaBean" />
<select class="select" name="gender" id="gender" size="1" <%=controller.getDisabledHtmlFromSession(request, session)%>>
Created on : 11.08.2015, 12:28:03
Author : Roland Haeder
--%>
+
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<div class="footer">
<ul class="footer_nav">
- <li><a href="<%=request.getContextPath()%>/">Home</a></li>
- <li><a href="<%=request.getContextPath()%>/imprint.jsp">Impressum</a></li>
- <li><a href="<%=request.getContextPath()%>/terms.jsp">AGBs</a></li>
- <li><a href="<%=request.getContextPath()%>/privacy.jsp">Datenschutz</a></li>
+ <li><a href="${basePath}/">Home</a></li>
+ <li><a href="${basePath}/imprint.jsp">Impressum</a></li>
+ <li><a href="${basePath}/terms.jsp">AGBs</a></li>
+ <li><a href="${basePath}/privacy.jsp">Datenschutz</a></li>
</ul>
</div>
Author : Roland Haeder
--%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<c:set var="basePath" value="${pageContext.request.contextPath}" />
+
<div id="menu">
<ul>
- <li><a href="<%=request.getContextPath()%>/" title="Eingangsseite">Home</a></li>
- <li><a href="<%=request.getContextPath()%>/bye.jsp" title="Sitzung beennden">Sitzung beenden</a></li>
+ <li><a href="${basePath}/" title="Eingangsseite">Home</a></li>
+ <li><a href="${basePath}/basket.jsp" title="Zum Warenkorb">Zum Warenkorb</a></li>
+ <li><a href="${basePath}/bye.jsp" title="Sitzung beennden">Sitzung beenden</a></li>
</ul>
<ul>
- <li><a href="<%=request.getContextPath()%>/customer/login.jsp" title="Login für bestehende Kunden">Einloggen</a></li>
- <li><a href="<%=request.getContextPath()%>/customer/register.jsp" title="Anmeldung als neuer Kunde">Neuer Kunde</a></li>
- <li><a href="<%=request.getContextPath()%>/customer/lost_passwd.jsp" title="Neues Passwort erstellen">Passwort vergessen?</a></li>
+ <li><a href="${basePath}/customer/login.jsp" title="Login für bestehende Kunden">Einloggen</a></li>
+ <li><a href="${basePath}/customer/register.jsp" title="Anmeldung als neuer Kunde">Neuer Kunde</a></li>
+ <li><a href="${basePath}/customer/lost_passwd.jsp" title="Neues Passwort erstellen">Passwort vergessen?</a></li>
</ul>
</div>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
+<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">
<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 - Allgemeine Geschäftsbedingungen</title>
</head>