]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/form_handler/admin/do_category.jsp
Fixed more packages
[pizzaservice-war.git] / web / form_handler / admin / do_category.jsp
index c4cf37df2dc1787b6f1b1262c297b2b3dd52d87b..656e336cc6f4b3fef1680d54cca0a015cb1797b5 100644 (file)
@@ -6,12 +6,15 @@
 
 <%--<%@page errorPage="errorHandler.jsp" %>--%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
+<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
 <%@page import="org.mxchange.pizzaapplication.beans.PizzaBean"%>
 <%@page import="org.mxchange.pizzaapplication.beans.customer.CustomerBean" %>
 <%@page import="org.mxchange.pizzaapplication.product.Product"%>
 <%@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" />
+<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.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
@@ -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>
 
 
                <jsp:include page="/static/admin/admin_menu.jsp" flush="false" />
 
-               <div id="content_outer">
-                       <div id="content_title">
-                               <h2>Bitte nicht direkt aufrufen:</h2>
-                       </div>
-
-                       <div id="content">
-                               Bitte rufen Sie diese Seite nicht direkt auf.
-                       </div>
-               </div>
+               <jsp:include page="/static/error/direct_call.jsp" flush="false" />
        </body>
 </html>