]> git.mxchange.org Git - pizzaservice-war.git/blob - web/form_handler/add_item.jsp
aa17cca551f50a208b539a404cbec65dd7ff2b7c
[pizzaservice-war.git] / web / form_handler / add_item.jsp
1 <%-- 
2         Document   : add_item
3         Ceated on : Aug 17, 2015, 7:03:38 PM
4         Author     : Roland Haeder
5 --%>
6
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page contentType="text/html" pageEncoding="UTF-8"%>
9 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
10 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
11 <%@page import="org.mxchange.pizzaapplication.item.AddableBasketItem"%>
12
13 <jsp:useBean id="item" scope="session" class="org.mxchange.pizzaapplication.item.basket.BasketItem" type="AddableBasketItem" />
14 <jsp:setProperty name="item" property="*" />
15
16 <%
17         // Init application instance
18         PizzaApplication app = PizzaServiceApplication.getInstance(application);
19
20         // Redirect to proper URL
21         // @TODO Commented out for debugging
22         //response.sendRedirect(request.getContextPath() + "/?add=1");
23 %>
24 <jsp:forward page="../index.jsp" />
25
26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
27 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
28         <head>
29                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
30                 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
31                 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
32         </head>
33
34         <body>
35                 <div id="title">
36                         <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
37                 </div>
38
39                 <jsp:include page="/static/menu.jsp" flush="false" />
40
41                 <jsp:include page="/static/error/direct_call.jsp" flush="false" />
42         </body>
43 </html>