]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Migration to JSF continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 09:16:36 +0000 (11:16 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 09:16:36 +0000 (11:16 +0200)
- used lesser scriptlets where possible, e.g.:
- <%=request.getContextPath()%> can be converted to ${pageContext.request.contextPath}
- after that, set it with <c:set var="basePath" value="${pageContext....}" />
- then you can use it: ${basePath}
Signed-off-by:Roland Häder <roland@mxchange.org>

19 files changed:
web/admin/category.jsp
web/admin/index.jsp
web/admin/product.jsp
web/errorHandler.jsp
web/form_handler/add_item.jsp
web/form_handler/admin/do_category.jsp
web/form_handler/admin/do_product.jsp
web/imprint.jsp
web/index.jsp
web/privacy.jsp
web/static/admin/admin_category_selection_box.jsp
web/static/admin/admin_footer.jsp
web/static/admin/admin_menu.jsp
web/static/admin/admin_parent_category_selection_box.jsp
web/static/forms/form_login.jsp
web/static/gender_selection_box.jsp
web/static/guest/guest_footer.jsp
web/static/guest/guest_menu.jsp
web/terms.jsp

index 03817a1350a30a618bf7a9c821762806e110c765..3742aa13d77845552a4a236b6e2a0be9bbba99c9 100644 (file)
@@ -4,13 +4,13 @@
        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">
index d60e08def4f36635deb63df41a874615a1eaa2fc..0983d611bd62ec645da0b86743ae6efe3485ba82 100644 (file)
 <%@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>
 
index 399fe98f82292a9b98b827874193ce41ce8d056c..09b79b4ed1f96fa85b5b600c2b345cd9f79e2d68 100644 (file)
 <%@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>
 
@@ -40,7 +42,7 @@
 
                        <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)}
@@ -96,7 +98,7 @@
                                </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:
index 059399fd529f8adfff167a54364a0932074f80a5..feffab1677dd06c7ffece63c02130fbd5c5c61d3 100644 (file)
 <%@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>
 
index d5638079ca2cd838a98c437aadabca9df38cda5c..3362d09ec6817b1eed3045f01bffd96918e2b1f6 100644 (file)
@@ -20,6 +20,9 @@
 <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();
@@ -41,7 +44,7 @@
 <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>
 
index c4cf37df2dc1787b6f1b1262c297b2b3dd52d87b..978c8d45cf5e88277c7bc0ed2cdf885744f1f1b7 100644 (file)
@@ -13,6 +13,9 @@
 <%@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);
@@ -22,7 +25,7 @@
 <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>
 
index d912531bb13e1d84cf17aef7b709a7ed72966ca1..4154712468a1e0f5b9fc0e50dce019e65ba508ac 100644 (file)
@@ -12,6 +12,9 @@
 <%@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);
@@ -21,7 +24,7 @@
 <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>
 
index cd0acdb24dcd7c6f151e898c5f7350ca833cafcf..34730dbd72ea00ad8af1a7e805e7a78e1ed692a7 100644 (file)
@@ -7,11 +7,14 @@
 <%@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>
 
index 6a540763fa2553c492cce8c9ff2421ed3600935c..0a33ffc53d7db91beaa9b391f4537badc5ca2138 100644 (file)
 <%@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();%>
@@ -26,7 +29,7 @@
 <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>
 
@@ -90,7 +93,7 @@
                                        <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>
index 00c02e3ac05a2e720773582fa5de86cc369c1814..0fc80f75f1ff033808767c3626698ada160cdd4a 100644 (file)
@@ -8,11 +8,13 @@
 <%@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>
 
index 5d7672b2ec6fa75f0915ef2c7caf069c073c9b03..52a0d335a4d7001716c2db7702ea7a97ab9e32fc 100644 (file)
@@ -11,7 +11,7 @@
 <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>
index 8b0c30c5ca350d47ff59af25a8d794c0cb4c01fe..aa6b21b91eedf0bf76408058cae1d3af12c90622 100644 (file)
@@ -3,9 +3,13 @@
        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>
 
index 142f828551edcb69176d1bca96ba23d2c89262fa..9250428569de0cead6a36d965791d9c4683ff8a4 100644 (file)
@@ -4,15 +4,18 @@
        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>
index 845dcae4561dd0dc8dc36d474eb53272d3926362..7d118ec97bcac2e054f9699bae58920c25b79bc5 100644 (file)
@@ -12,7 +12,7 @@
 
 <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>
index 8c187eea42f5ff7337c8ccf43d17a83153bc22cc..61b8c459f76602742ced1913d6e923cfcff63f0d 100644 (file)
@@ -3,8 +3,12 @@
        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:
index 09379be6fb2300a548152bcc8ee508eed86ed9b2..e453adb55d80c228ec83a1c6d02aaaa95cf4dcc2 100644 (file)
@@ -8,7 +8,7 @@
 <%@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)%>>
index 597af5635a2d63a1634758e11c987bb3ec92caf0..4cad7d344a3bf5cd5da46c250213cbe628ef87e1 100644 (file)
@@ -3,12 +3,16 @@
        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>
 
index b2c8174b3a14892ce2bde95c4227b3a9dc2dd2e7..235516357bde05a0964367545202e8f97234657e 100644 (file)
@@ -4,15 +4,19 @@
        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>
index bbd11465ed9cc502fa56558a0da1ddaac4bb9760..f20a96341e7e62c84f309a6b5615e0c3be9e49cd 100644 (file)
@@ -8,11 +8,13 @@
 <%@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>