]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Again use the scriptlet-lesser approach
authorRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 11:57:40 +0000 (13:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 28 Aug 2015 11:57:40 +0000 (13:57 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/bye.jsp
web/customer/login.jsp
web/customer/lost_passwd.jsp
web/customer/register.jsp

index bb87fe23b7b47672728a49febad874528c22dd07..199bd4bf0d3bf70a9bcc03f349e7be3c8a9c8d4d 100644 (file)
@@ -11,7 +11,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 - Sitzung beenden</title>
        </head>
 
index 576f73f74a2e27f8bd19b73bf88858b7e5bf242a..a9d408a5c356ee8b6e003c050783c1c59d0319cf 100644 (file)
@@ -8,11 +8,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 - Einloggen</title>
        </head>
 
@@ -32,7 +35,7 @@
 
                        <div id="content">
                                <div class="para">
-                                       Noch kein Kunde? Einfach beim Bestellen anmelden oder <a href="<%=request.getContextPath()%>/customer/register.jsp">hier</a> anmelden.
+                                       Noch kein Kunde? Einfach beim Bestellen anmelden oder <a href="${basePath}/customer/register.jsp">hier</a> anmelden.
                                </div>
 
                                <div class="para">
@@ -40,7 +43,7 @@
                                </div>
 
                                <div class="para">
-                                       <a href="<%=request.getContextPath()%>/lost_passwd.jsp">Passwort vergessen?</a>
+                                       <a href="${basePath}/lost_passwd.jsp">Passwort vergessen?</a>
                                </div>
                        </div>
                </div>
index 62cdae6b75b5cdb670ae48f228533eedf4131aff..c77bab65ff1c694111af3dfadcb878257491d12c 100644 (file)
@@ -8,11 +8,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 - Passwort vergessen</title>
        </head>
 
@@ -37,7 +40,7 @@
 
                                <div class="para">
                                        <div id="login_form">
-                                               <form action="<%=request.getContextPath()%>/form_handler/do_passwd.jsp" accept-charset="utf-8" id="form" method="post">
+                                               <form action="${basePath}/form_handler/do_passwd.jsp" accept-charset="utf-8" id="form" method="post">
                                                        <div class="table">
                                                                <div class="table_header">
                                                                        Bitte geben Sie Ihre Kundennummer oder eMail-Adresse ein:
index 1c7088ecc883a6ebaca5056e34c6d386d50f4810..5ac0bafe7e31d37a23212ba837e8a260e9d650c2 100644 (file)
 <%@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 - Neukunde</title>
        </head>
 
 
                        <div id="content">
                                <div>
-                                       Sie sind bereits Kunde? Dann <a href="<%=request.getContextPath()%>/customer/login.jsp">hier</a> einloggen.
+                                       Sie sind bereits Kunde? Dann <a href="${basePath}/customer/login.jsp">hier</a> einloggen.
                                </div>
 
-                               <form action="<%=request.getContextPath()%>/form_handler/do_register.jsp" accept-charset="utf-8" id="form" method="post">
+                               <form action="${basePath}/form_handler/do_register.jsp" accept-charset="utf-8" id="form" method="post">
                                        <div class="table">
                                                <div class="table_header">
                                                        Bitte geben Sie mindestens Name, Anschrift und Telefonnummer ein:
                                                                        </div>
 
                                                                        <div class="table_right75">
-                                                                               Ja, ich habe die <a href="<%=request.getContextPath()%>/privacy.jsp" target="_blank">Datenschutzbestimmungen</a> gelesen und
+                                                                               Ja, ich habe die <a href="${basePath}/privacy.jsp" target="_blank">Datenschutzbestimmungen</a> gelesen und
                                                                                auch verstanden.
                                                                        </div>
 
                                                                        </div>
 
                                                                        <div class="table_right75">
-                                                                               Ja, ich habe die <a href="<%=request.getContextPath()%>/terms.jsp" target="_blank">Allgemeinen Geschäftsbedingungen</a> gelesen und
+                                                                               Ja, ich habe die <a href="${basePath}/terms.jsp" target="_blank">Allgemeinen Geschäftsbedingungen</a> gelesen und
                                                                                auch verstanden.
                                                                        </div>