+++ /dev/null
-<%--
- Document : bye
- Created on : 05.08.2015, 10:51:14
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-
-<!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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Sitzung beenden</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Sitzung beenden</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Situng beenden:</h2>
- </div>
-
- <div id="content">
- <%
- synchronized (session) {
- if (!session.isNew()) {
- // Not new session
- session.invalidate();
- out.println("Sitzung beendet.");
- } else {
- // New session
- out.println("Sitzung bereits beendet.");
- }
- }
- %>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<%--
+ Document : bye
+ Created on : 05.08.2015, 10:51:14
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+
+<!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="${basePath}/style.css" type="text/css" />
+ <title>Pizza-Service - Sitzung beenden</title>
+ </head>
+
+ <body>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - Sitzung beenden</h1>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Situng beenden:</h2>
+ </div>
+
+ <div id="content">
+ <%
+ synchronized (session) {
+ if (!session.isNew()) {
+ // Not new session
+ session.invalidate();
+ out.println("Sitzung beendet.");
+ } else {
+ // New session
+ out.println("Sitzung bereits beendet.");
+ }
+ }
+ %>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
+ </body>
+</html>
+++ /dev/null
-<%--
- Document : errorHandler
- Created on : 05.08.2015, 12:06:39
- Author : Roland Haeder
---%>
-
-<%@page import="java.io.PrintWriter"%>
-<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
-<%@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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Fehler</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Fehler</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>An error occured:</h2>
- </div>
-
- <div id="content">
- Unfortunately an unexpected error has occurred. Below you can find the error details.
- <ul>
- <li>Timestamp: <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long" /></li>
- <li>Action: <c:out value="${requestScope['javax.servlet.forward.request_uri']}" /></li>
- <li>Exception: <c:out value="${requestScope['javax.servlet.error.exception']}" /></li>
- <li>Message: <c:out value="${requestScope['javax.servlet.error.message']}" /></li>
- <li>Status code: <c:out value="${requestScope['javax.servlet.error.status_code']}" /></li>
- <li>User agent: <c:out value="${header['user-agent']}" /></li>
- </ul>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<%--
+ Document : errorHandler
+ Created on : 05.08.2015, 12:06:39
+ Author : Roland Haeder
+--%>
+
+<%@page import="java.io.PrintWriter"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@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="${basePath}/style.css" type="text/css" />
+ <title>Pizza-Service - Fehler</title>
+ </head>
+
+ <body>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - Fehler</h1>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>An error occured:</h2>
+ </div>
+
+ <div id="content">
+ Unfortunately an unexpected error has occurred. Below you can find the error details.
+ <ul>
+ <li>Timestamp: <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long" /></li>
+ <li>Action: <c:out value="${requestScope['javax.servlet.forward.request_uri']}" /></li>
+ <li>Exception: <c:out value="${requestScope['javax.servlet.error.exception']}" /></li>
+ <li>Message: <c:out value="${requestScope['javax.servlet.error.message']}" /></li>
+ <li>Status code: <c:out value="${requestScope['javax.servlet.error.status_code']}" /></li>
+ <li>User agent: <c:out value="${header['user-agent']}" /></li>
+ </ul>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
+ </body>
+</html>
+++ /dev/null
-<%--
- Document : login
- Created on : 11.08.2015, 11:35:53
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Impressum</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Impressum</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Impressum:</h2>
- </div>
-
- <div id="content">
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<%--
+ Document : login
+ Created on : 11.08.2015, 11:35:53
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@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="${basePath}/style.css" type="text/css" />
+ <title>Pizza-Service - Impressum</title>
+ </head>
+
+ <body>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - Impressum</h1>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Impressum:</h2>
+ </div>
+
+ <div id="content">
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
+ </body>
+</html>
+++ /dev/null
-<%--
- Document : index
- Created on : 04.08.2015, 10:33:10
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
-<%@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/jshop/tags/basket" %>
-
-<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
-
-<jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
-<jsp:setProperty name="controller" property="basket" value="${basket}" />
-<%
- // TODO: Can be removed later
- 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">
-<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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Willkommen</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Willkommen</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Eingangsseite (dummy):</h2>
- </div>
-
- <div id="content">
- <!-- TODO: Missing in xhtml: //-->
- <basket:mini_basket basket="${basket}" />
-
- <table class="table">
- <thead>
- <tr>
- <th colspan="4" class="table_header">
- Folgendes kann bestellt werden:
- </th>
- </tr>
- </thead>
-
- <tbody>
- <tr>
- <th class="table_header_column">
- Bestellen?
- </th>
- <th class="table_header_column">
- Anzahl:
- </th>
- <th class="table_header_column">
- Produkt:
- </th>
- <th class="table_header_column">
- Einzelpreis:
- </th>
- </tr>
- </tbody>
- </table>
-
- <c:forEach var="product" items="${controller.availableProductsIterator}">
- <c:choose>
- <c:when test="${controller.basket.isAdded(product)}">
- <c:set var="item" value="${controller.basket.item}" />
- <table class="table">
- <tbody>
- <tr>
- <td class="table_data_column">
- <a href="${basePath}/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
- </td>
- <td class="table_data_column">
- ${item.amount}
- </td>
- <td class="table_data_column">
- ${product.title}
- </td>
- <td class="table_data_column" align="right">
- <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
- </td>
- </tr>
- </tbody>
- </table>
- </c:when>
- <c:otherwise>
- <form action="${basePath}/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
- <table class="table">
- <tbody>
- <tr>
- <td class="table_data_column">
- <input class="submit" type="submit" name="add" value="Hinzufügen" />
- <input type="hidden" name="itemId" value="${product.itemId}" />
- <input type="hidden" name="itemType" value="Product" />
- </td>
- <td class="table_data_column">
- <input class="input" type="text" name="amount" size="3" maxlength="20" />
- </td>
- <td class="table_data_column">
- ${product.title}
- </td>
- <td class="table_data_column" align="right">
- <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
+++ /dev/null
-<%--
- Document : privacy
- Created on : 11.08.2015, 11:56:22
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-
-<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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Datenschutzbestimmungen</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Datenschutzbestimmungen</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Datenschutzbestimmungen:</h2>
- </div>
-
- <div id="content">
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<%--
+ Document : privacy
+ Created on : 11.08.2015, 11:56:22
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+
+<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="${basePath}/style.css" type="text/css" />
+ <title>Pizza-Service - Datenschutzbestimmungen</title>
+ </head>
+
+ <body>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - Datenschutzbestimmungen</h1>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Datenschutzbestimmungen:</h2>
+ </div>
+
+ <div id="content">
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
+ </body>
+</html>
+++ /dev/null
-/**
-div {
- border: 1px solid #ff0000;
-}
-/**/
-
-table, .table {
- margin: 0px;
- padding: 0px;
-}
-
-.table {
- width: 500px;
-}
-
-.table_row {
- width: 100%;
-}
-
-.table_left {
- width: 250px;
- float: left;
-}
-
-.table_right {
- width: 200px;
- float: right;
-}
-
-.table_left25 {
- width: 20px;
- float: left;
-}
-
-.table_right75 {
- width: 430px;
- float: right;
-}
-
-.para {
- padding: 5px 5px 5px 5px;
-}
-
-.clear {
- clear: both;
-}
-
-ul.footer_nav {
- text-align: center;
- width : 500px;
- list-style: none;
-}
-
-ul.footer_nav li {
- float: left;
- width: 100px;
-}
-
-#menu ul {
- list-style: none;
- padding-left: 5px;
-}
-
-.table_header {
- text-align: center;
- font-weight: bold;
- font-size: 20px;
-}
-
-.table_header_column {
- width: 100px;
-}
-
-.table_data_column {
- width: 100px;
-}
+++ /dev/null
-<%--
- Document : privacy
- Created on : 11.08.2015, 11:56:22
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-
-<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="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Allgemeine Geschäftsbedingungen</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Allgemeine Geschäftsbedingungen</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Allgemeine Geschäftsbedingungen:</h2>
- </div>
-
- <div id="content">
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<%--
+ Document : privacy
+ Created on : 11.08.2015, 11:56:22
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+
+<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="${basePath}/style.css" type="text/css" />
+ <title>Pizza-Service - Allgemeine Geschäftsbedingungen</title>
+ </head>
+
+ <body>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - Allgemeine Geschäftsbedingungen</h1>
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Allgemeine Geschäftsbedingungen:</h2>
+ </div>
+
+ <div id="content">
+ </div>
+ </div>
+
+ <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
+ </body>
+</html>