]> git.mxchange.org Git - pizzaservice-war.git/blob - web/form_handler/order.jsp
Continued with project:
[pizzaservice-war.git] / web / form_handler / order.jsp
1 <%-- 
2         Document   : order
3         Created on : 07.08.2015, 14:58:21
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.beans.CustomerBean" %>
10 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
11 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
12
13 <%
14         // Init application instance
15         PizzaApplication app = PizzaServiceApplication.getInstance(application);
16
17         // Is it post?
18         if ("POST".equals(request.getMethod())) { //NOI18N
19                 // Redirect to proper URL
20                 // @TODO Commented out for developing:
21                 //response.sendRedirect(request.getContextPath() + "/finished.jsp");
22 %>
23 <jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
24 <jsp:setProperty name="customer" property="*" />
25 <jsp:forward page="../finished.jsp" />
26 <%
27         }
28 %>
29
30 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
32         <head>
33                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
34                 <link rel="stylesheet" href="style.css" type="text/css"/>
35                 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
36         </head>
37
38         <body>
39                 <div id="title">
40                         <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
41                 </div>
42
43                 <div id="menu">
44                         <jsp:include page="/static/menu.jsp" flush="true" />
45                 </div>
46
47                 <div id="content_outer">
48                         <div id="content_title">
49                                 <h2>Bitte nicht direkt aufrufen:</h2>
50                         </div>
51
52                         <div id="content">
53                                 Bitte rufen Sie diese Seite nicht direkt auf.
54                         </div>
55                 </div>
56         </body>
57 </html>