3 Created on : 07.08.2015, 14:58:21
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page contentType="text/html" pageEncoding="UTF-8"%>
9 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
10 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
11 <%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
12 <%@page import="org.mxchange.pizzaapplication.product.Product"%>
15 // Init application instance
16 PizzaApplication app = PizzaServiceApplication.getInstance(application);
19 if ("POST".equals(request.getMethod())) { //NOI18N
20 // @TODO Handle saving customer data and such things
22 // Mark all choosen products as ordered
23 app.markAllChoosenProductsAsOrdered(request, session);
25 // Redirect to proper URL
26 // @TODO Commented out for developing:
27 //response.sendRedirect(request.getContextPath() + "/finished.jsp");
29 <jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
30 <jsp:setProperty name="customer" property="*" />
31 <jsp:forward page="../finished.jsp" />
36 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
39 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
40 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
41 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
46 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
49 <jsp:include page="/static/admin/menu.jsp" flush="true" />
51 <div id="content_outer">
52 <div id="content_title">
53 <h2>Bitte nicht direkt aufrufen:</h2>
57 Bitte rufen Sie diese Seite nicht direkt auf.