]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Lesser scriptlets
authorRoland Haeder <roland@mxchange.org>
Mon, 31 Aug 2015 09:16:50 +0000 (11:16 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 31 Aug 2015 09:16:59 +0000 (11:16 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/admin/category.jsp
web/admin/product.jsp

index 3412c14ed6159c1ec1cc216501ef959e152359b8..ac9678f763f5bfacb834337eee4eb3a04b46e46b 100644 (file)
@@ -6,7 +6,6 @@
 
 <%--<%@page errorPage="errorHandler.jsp" %>--%>
 <%@page import="org.mxchange.jshop.category.Category"%>
-<%@page import="org.mxchange.jshop.database.frontend.category.CategoryFrontend"%>
 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
@@ -68,7 +67,7 @@
                                                        <tr>
                                                                <td>
                                                                        ${category.categoryId}:
-                                                                       <input class="input" type="checkbox" name="<%=CategoryFrontend.COLUMN_ID%>[${category.categoryId}]" value="1" />
+                                                                       <input class="input" type="checkbox" name="categoryId[${category.categoryId}]" value="1" />
                                                                </td>
                                                                <td>
                                                                        ${category.decodedTitle}
@@ -92,7 +91,7 @@
                                </div>
 
                                <div class="para">
-                                       <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
+                                       <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add_category" method="post">
                                        <div class="table">
                                                <div class="table_header">
                                                        Neue Kategorie hinzufügen:
                                                                </div>
 
                                                                <div class="table_right">
-                                                                       <input class="input" type="text" name="<%=CategoryFrontend.COLUMN_TITLE%>" size="10" maxlength="255" />
+                                                                       <input class="input" type="text" name="title" size="10" maxlength="255" />
                                                                </div>
 
                                                                <div class="clear"></div>
index a69dec3aa1bc31298fe79e9336eb1f2d2cb29dfa..53ba353b60a384584e6a51a48a4bff44c2334769 100644 (file)
@@ -7,11 +7,6 @@
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%--<%@page errorPage="errorHandler.jsp" %>--%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="java.util.Iterator"%>
-<%@page import="java.util.Map"%>
-<%@page import="org.mxchange.jcore.contact.Gender"%>
-<%@page import="org.mxchange.jshop.product.Product"%>
-<%@page import="org.mxchange.jshop.database.frontend.product.ProductFrontend"%>
 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
 <jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
@@ -76,7 +71,7 @@
                                                        <tr>
                                                                <td>
                                                                        ${product.itemId}:
-                                                                       <input class="input" type="checkbox" name="<%=ProductFrontend.COLUMN_ITEM_ID%>[${product.itemId}]" value="1" />
+                                                                       <input class="input" type="checkbox" name="itemId[${product.itemId}]" value="1" />
                                                                </td>
                                                                <td>
                                                                        ${product.title}
                                                                </div>
 
                                                                <div class="table_right">
-                                                                       <input class="input" type="text" name="<%=ProductFrontend.COLUMN_TITLE%>" size="10" maxlength="255" />
+                                                                       <input class="input" type="text" name="title" size="10" maxlength="255" />
                                                                </div>
 
                                                                <div class="clear"></div>
                                                                </div>
 
                                                                <div class="table_right">
-                                                                       <input class="input" type="text" name="<%=ProductFrontend.COLUMN_PRICE%>" size="10" maxlength="255" />
+                                                                       <input class="input" type="text" name="price" size="10" maxlength="255" />
                                                                </div>
 
                                                                <div class="clear"></div>