From: Roland Haeder Date: Thu, 6 Aug 2015 13:15:54 +0000 (+0200) Subject: Added more fields the user may want to fill out + used some beans X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=84879f39fcb52941b43d80c3f9c5c971f0c7e5fa;p=pizzaservice-war.git Added more fields the user may want to fill out + used some beans Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/customer/Customer.java b/src/java/org/mxchange/pizzaapplication/customer/Customer.java index 8dd11480..7d2cf5f4 100644 --- a/src/java/org/mxchange/pizzaapplication/customer/Customer.java +++ b/src/java/org/mxchange/pizzaapplication/customer/Customer.java @@ -19,9 +19,10 @@ package org.mxchange.pizzaapplication.customer; import org.mxchange.jcore.contact.Contact; /** + * A customer interface * * @author Roland Haeder */ public interface Customer extends Contact { - + } diff --git a/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java b/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java index 459f5bcf..e1edf34c 100644 --- a/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java +++ b/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java @@ -16,12 +16,24 @@ */ package org.mxchange.pizzaapplication.customer.bean; +import org.mxchange.pizzaapplication.customer.Customer; import org.mxchange.pizzaapplication.customer.PizzaServiceCustomer; /** + * A customer bean which hides the customer instance * * @author Roland Haeder */ -public class CustomerBean extends PizzaServiceCustomer { - +public class CustomerBean extends PizzaServiceCustomer implements Customer { + + /** + * Default constructor + */ + public CustomerBean () { + // Init customer instance + Customer customer = new PizzaServiceCustomer(); + + // Set it here + this.setContact(customer); + } } diff --git a/web/finished.jsp b/web/finished.jsp index 68322e02..61b604ba 100644 --- a/web/finished.jsp +++ b/web/finished.jsp @@ -4,7 +4,9 @@ Author : Roland Haeder --%> +<%-- <%@page errorPage="errorHandler.jsp" %> +--%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.util.Map"%> diff --git a/web/order.jsp b/web/order.jsp index a6a3b851..cc190c17 100644 --- a/web/order.jsp +++ b/web/order.jsp @@ -10,8 +10,12 @@ <%@page import="org.mxchange.pizzaapplication.product.Product"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%> +<%@page import="org.mxchange.pizzaapplication.customer.Customer" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> + + + <% // Init application instance PizzaApplication app = PizzaServiceApplication.getInstance(application); @@ -119,10 +123,20 @@ -
- Bitte Ihre Daten eingeben: +
+ Bitte Ihre Daten eingeben: +
+
+ +
+
+ /> +
+
+
+
@@ -134,10 +148,10 @@
- +
- /> + />
@@ -147,27 +161,27 @@
- /> + />
- +
- /> + />
- +
- /> + />
@@ -184,10 +198,30 @@
- + +
+
+ /> +
+
+
+ +
+
+ +
+
+ /> +
+
+
+ +
+
+
- /> + />
@@ -197,6 +231,7 @@ + /> diff --git a/web/style.css b/web/style.css index 18c45f57..61515f97 100644 --- a/web/style.css +++ b/web/style.css @@ -9,7 +9,7 @@ } .data_right { - width: 100px; + width: 150px; float: right; }