]> git.mxchange.org Git - pizzaservice-war.git/blob - web/form_handler/add_item.jsp
Continued with project, added more checks for items and handling of already added...
[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         response.sendRedirect(request.getContextPath() + "/?add=1");
22 %>
23
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
26         <head>
27                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
28                 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
29                 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
30         </head>
31
32         <body>
33                 <div id="title">
34                         <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
35                 </div>
36
37                 <jsp:include page="/static/menu.jsp" flush="false" />
38
39                 <jsp:include page="/static/error/direct_call.jsp" flush="false" />
40         </body>
41 </html>