* @return Value from key, empty string for null
*/
public Object getPrintableValeFromSession (final HttpSession session, final String key);
+
+ /**
+ * Somewhat setter in session
+ *
+ * @param session Session instance
+ * @param key Session key to set
+ * @param value Value to set
+ */
+ public void setValueInSession (final HttpSession session, final String key, final Object value);
}
synchronized(session) {
// Set it synced
- this.getLogger().debug(MessageFormat.format("setValueInSession: Setting value={0} for product={1},keyPart={2}", value, product.getName(), keyPart)); //NOI18N
- session.setAttribute(String.format(HTTP_PARAM_MASK, product.getName(), keyPart), value);
+ this.getLogger().debug(MessageFormat.format("Setting value={0} for product={1},keyPart={2}", value, product.getName(), keyPart)); //NOI18N
+ this.setValueInSession(session, String.format(HTTP_PARAM_MASK, product.getName(), keyPart), value);
+ }
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
+ }
+
+ /**
+ * Somewhat setter in session
+ *
+ * @param session Session instance
+ * @param key Session key to set
+ * @param value Value to set
+ */
+ @Override
+ public void setValueInSession (final HttpSession session, final String key, final Object value) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("session={0},key={1},value={2} - CALLED!", session, key, value)); //NOI18N
+
+ synchronized(session) {
+ // Set it synced
+ session.setAttribute(key, value);
}
// Trace message
// Instance customer
Contact customer = new PizzaServiceCustomer();
+ // Fake gender
+ customer.setGender(Gender.UNKNOWN);
+
// And set it here
this.setContact(customer);
}
}
@Override
- public long getHouseNumber () {
+ public Long getHouseNumber () {
// Deligate to "hidden" object
return this.getContact().getHouseNumber();
}
@Override
- public void setHouseNumber (final long houseNumber) {
+ public void setHouseNumber (final Long houseNumber) {
// Deligate to "hidden" object
this.getContact().setHouseNumber(houseNumber);
}
}
@Override
- public long getZipCode () {
+ public Long getZipCode () {
// Deligate to "hidden" object
return this.getContact().getZipCode();
}
@Override
- public void setZipCode (final long zipCode) {
+ public void setZipCode (final Long zipCode) {
// Deligate to "hidden" object
this.getContact().setZipCode(zipCode);
}
</div>
<div id="menu">
- <jsp:include page="static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="true" />
</div>
<div id="content_outer">
<%@page import="java.io.PrintWriter"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
-<jsp:useBean id="date" class="java.util.Date" /><%
+<jsp:useBean id="date" class="java.util.Date" />
+
+<%
// Init application instance
PizzaApplication app = PizzaServiceApplication.getInstance(application);
%>
</div>
<div id="menu">
- <jsp:include page="static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="true" />
</div>
<div id="content_outer">
Author : Roland Haeder
--%>
-<%@page import="java.lang.reflect.Field"%>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@page import="java.lang.reflect.Field"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Iterator"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
<%@page import="org.mxchange.pizzaapplication.product.Product"%>
-<jsp:useBean id="customer" scope="request" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
<jsp:setProperty name="customer" property="*" />
<%
</div>
<div id="menu">
- <jsp:include page="static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="true" />
</div>
<div id="content_outer">
%>
<li><%=entry.getKey().getName()%> set to: <%=entry.getValue()%></li>
<%
- // Set it in session
- synchronized (session) {
- session.setAttribute(entry.getKey().getName(), entry.getValue());
- }
}
%>
</ul>
--- /dev/null
+<%--
+ Document : order
+ Created on : 07.08.2015, 14:58:21
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@page import="java.lang.reflect.Field"%>
+<%@page import="java.util.Map"%>
+<%@page import="java.util.Iterator"%>
+<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
+
+<jsp:useBean id="customer" scope="request" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:setProperty name="customer" property="*" />
+
+<%
+ // Init application instance
+ PizzaApplication app = PizzaServiceApplication.getInstance(application);
+
+ // Is it post?
+ if ("POST".equals(request.getMethod())) {
+ // Is POST, so continue with handling
+ Iterator<Map.Entry<Field, Object>> fieldIterator = customer.iterator();
+
+ while (fieldIterator.hasNext()) {
+ Map.Entry<Field, Object> entry = fieldIterator.next();
+
+ // Debug message
+ app.getLogger().debug("entry " + entry.getKey() + "=" + entry.getValue());
+
+ // Set it in session
+ app.setValueInSession(session, entry.getKey().getName(), entry.getValue());
+ }
+
+ // Redirect to proper URL
+ //response.sendRedirect(request.getContextPath() + "/finished.jsp");
+ }
+%>
+<jsp:forward page="../finished.jsp" />
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="stylesheet" href="style.css" type="text/css"/>
+ <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
+ </head>
+
+ <body>
+ <div id="title">
+ <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
+ </div>
+
+ <div id="menu">
+ <jsp:include page="/static/menu.jsp" flush="true" />
+ </div>
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Bitte nicht direkt aufrufen:</h2>
+ </div>
+
+ <div id="content">
+ Bitte rufen Sie diese Seite nicht direkt auf.
+ </div>
+ </div>
+ </body>
+</html>
</div>
<div id="menu">
- <jsp:include page="static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="true" />
</div>
<div id="content_outer">
</div>
<div id="content">
- <form action="<%=request.getContextPath()%>/order.jsp" accept-charset="utf-8" id="form" method="post">
+ <form action="<%=request.getContextPath()%>/preview.jsp" accept-charset="utf-8" id="form" method="post">
<table class="table">
<thead class="table_header">
<tr>
+++ /dev/null
-<%--
- Document : order
- Created on : 04.08.2015, 10:55:10
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page import="java.util.Iterator"%>
-<%@page import="java.util.Map"%>
-<%@page import="org.mxchange.jcore.contact.Gender"%>
-<%@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.beans.CustomerBean" %>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-
-<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
-
-<jsp:setProperty name="customer" property="*" />
-
-<%
- // Init application instance
- PizzaApplication app = PizzaServiceApplication.getInstance(application);
-%>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="style.css" type="text/css"/>
- <title><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</title>
- </head>
-
- <body>
- <div id="title">
- <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</h1>
- </div>
-
- <div id="menu">
- <jsp:include page="static/menu.jsp" flush="true" />
- </div>
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Folgendes möchten Sie bestellen:</h2>
- </div>
-
- <div id="content">
- <form action="<%=request.getContextPath()%>/finished.jsp" accept-charset="utf-8" id="form" method="post">
- <table class="table">
- <thead class="table_header">
- <tr>
- <th class="table_header_column">
- Bestellen?
- </th>
- <th class="table_header_column">
- Anzahl:
- </th>
- <th class="table_header_column">
- Produkt:
- </th>
- <th class="table_header_column">
- Einzelpreis:
- </th>
- <th class="table_header_column">
- Zwischensumme:
- </th>
- </tr>
- </thead>
- <tbody class="table_body">
- <%
- // Get iterator from products
- Iterator<Map.Entry<String, Product>> iterator = app.getProductsIterator();
-
- // Iterate over all
- while (iterator.hasNext()) {
- // Get entry
- Map.Entry<String, Product> entry = iterator.next();
-
- // Get product
- Product product = entry.getValue();
- %>
- <tr>
- <td>
- <%=app.getPrintableChoosenFromRequestSession(product, request, session)%>
- </td>
- <td>
- <%=app.handleAmountFromRequestSession(product, request, session)%>
- </td>
- <td>
- <%=product.getTitle()%>
- </td>
- <td>
- <%=product.getPrice()%>
- </td>
- <td>
- <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
- </td>
- </tr>
- <%
- // Is it choosen and amount set?
- if (app.isProductChoosen(product, request, session)) {
- // Then mark it as choosen
- product.markAsChoosen();
- app.unmarkProductAsOrdered(product, session);
- }
- }
- %>
- <tr>
- <td id="table_total_amount_left">
- Menge:
- </td>
- <td id="table_total_amount_right">
- <%=app.calculateTotalAmount(request, session)%>
- </td>
- <td class="spacer">
-
- </td>
- <td id="table_total_sum_left">
- Gesamtpreis:
- </td>
- <td id="table_total_sum_right">
- <%=app.calculateTotalPrice(request, session)%>
- </td>
- </tr>
-
- <tr>
- <td colspan="5">
- <fieldset>
- <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
-
- <div class="data_row">
- <div class="data_left">
- <label for="gender">Anrede</label>
- </div>
- <div class="data_right">
- <select name="gender" id="gender" size="1">
- <%
- Gender[] genders = Gender.values();
- for (final Gender gender : genders) {
- %>
- <option value="<%=gender.name()%>"<%
- synchronized (session) {
- // Get session value
- Object value = session.getAttribute("gender");
- if ((value instanceof Gender) && (value.equals(gender))) {
- // Output selected="selected"
- out.print("selected=\"selected\"");
- }
- }
- %>><%=gender%></option>
- <%
- }
- %>
- </select>
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="companyname">Firmenname:</label>
- </div>
- <div class="data_right">
- <input type="text" id="companyname" name="companyname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "companyname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="surname">Vorname:</label>
- </div>
- <div class="data_right">
- <input type="text" id="surname" name="surname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "surname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="familyname">Nachname:</label>
- </div>
- <div class="data_right">
- <input type="text" id="familyname" name="familyname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "familyname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="street">Straße:</label>
- </div>
- <div class="data_right">
- <input type="text" id="street" name="street" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "street")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="houseNumber">Hausnummer:</label>
- </div>
- <div class="data_right">
- <input type="text" id="houseNumber" name="houseNumber" size="3" maxlength="5" value="<%=app.getPrintableValeFromSession(session, "houseNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="zipCode">Postleitzahl:</label>
- </div>
- <div class="data_right">
- <input type="text" id="zipCode" name="zipCode" size="5" maxlength="6" value="<%=app.getPrintableValeFromSession(session, "zipCode")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="city">Ort:</label>
- </div>
- <div class="data_right">
- <input type="text" id="city" name="city" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "city")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="phoneNumber">Telefon:</label>
- </div>
- <div class="data_right">
- <input type="text" id="phoneNumber" name="phoneNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "phoneNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="faxNumber">Faxnummer:</label>
- </div>
- <div class="data_right">
- <input type="text" id="faxNumber" name="faxNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "faxNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="data_row">
- <div class="data_left">
- <label for="cellphoneNumber">Handy:</label>
- </div>
- <div class="data_right">
- <input type="text" id="cellphoneNumber" name="cellphoneNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "cellphoneNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
- <div class="clear"></div>
- </div>
- </fieldset>
- </td>
- </tr>
-
- <tr>
- <td colspan="5" class="table_footer">
- <input type="reset" value="Formular zurücksetzen" />
- <input type="submit" name="send" value="Bestellung abschliessen" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- </div>
- </body>
-</html>
--- /dev/null
+<%--
+ Document : order
+ Created on : 04.08.2015, 10:55:10
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@page import="java.util.Iterator"%>
+<%@page import="java.util.Map"%>
+<%@page import="org.mxchange.jcore.contact.Gender"%>
+<%@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.beans.CustomerBean" %>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+
+<jsp:setProperty name="customer" property="*" />
+
+<%
+ // Init application instance
+ PizzaApplication app = PizzaServiceApplication.getInstance(application);
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="stylesheet" href="style.css" type="text/css"/>
+ <title><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</title>
+ </head>
+
+ <body>
+ <div id="title">
+ <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</h1>
+ </div>
+
+ <div id="menu">
+ <jsp:include page="/static/menu.jsp" flush="true" />
+ </div>
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Folgendes möchten Sie bestellen:</h2>
+ </div>
+
+ <div id="content">
+ <form action="<%=request.getContextPath()%>/form_handler/order.jsp" accept-charset="utf-8" id="form" method="post">
+ <table class="table">
+ <thead class="table_header">
+ <tr>
+ <th class="table_header_column">
+ Bestellen?
+ </th>
+ <th class="table_header_column">
+ Anzahl:
+ </th>
+ <th class="table_header_column">
+ Produkt:
+ </th>
+ <th class="table_header_column">
+ Einzelpreis:
+ </th>
+ <th class="table_header_column">
+ Zwischensumme:
+ </th>
+ </tr>
+ </thead>
+ <tbody class="table_body">
+ <%
+ // Get iterator from products
+ Iterator<Map.Entry<String, Product>> iterator = app.getProductsIterator();
+
+ // Iterate over all
+ while (iterator.hasNext()) {
+ // Get entry
+ Map.Entry<String, Product> entry = iterator.next();
+
+ // Get product
+ Product product = entry.getValue();
+ %>
+ <tr>
+ <td>
+ <%=app.getPrintableChoosenFromRequestSession(product, request, session)%>
+ </td>
+ <td>
+ <%=app.handleAmountFromRequestSession(product, request, session)%>
+ </td>
+ <td>
+ <%=product.getTitle()%>
+ </td>
+ <td>
+ <%=product.getPrice()%>
+ </td>
+ <td>
+ <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
+ </td>
+ </tr>
+ <%
+ // Is it choosen and amount set?
+ if (app.isProductChoosen(product, request, session)) {
+ // Then mark it as choosen
+ product.markAsChoosen();
+ app.unmarkProductAsOrdered(product, session);
+ }
+ }
+ %>
+ <tr>
+ <td id="table_total_amount_left">
+ Menge:
+ </td>
+ <td id="table_total_amount_right">
+ <%=app.calculateTotalAmount(request, session)%>
+ </td>
+ <td class="spacer">
+
+ </td>
+ <td id="table_total_sum_left">
+ Gesamtpreis:
+ </td>
+ <td id="table_total_sum_right">
+ <%=app.calculateTotalPrice(request, session)%>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="5">
+ <fieldset>
+ <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="gender">Anrede</label>
+ </div>
+ <div class="data_right">
+ <select name="gender" id="gender" size="1">
+ <%
+ Gender[] genders = Gender.values();
+ for (final Gender gender : genders) {
+ %>
+ <option value="<%=gender.name()%>"<%
+ synchronized (session) {
+ // Get session value
+ Object value = session.getAttribute("gender");
+ if ((value instanceof Gender) && (value.equals(gender))) {
+ // Output selected="selected"
+ out.print("selected=\"selected\"");
+ }
+ }
+ %>><%=gender%></option>
+ <%
+ }
+ %>
+ </select>
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="companyname">Firmenname:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="companyname" name="companyname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "companyname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="surname">Vorname:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="surname" name="surname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "surname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="familyname">Nachname:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="familyname" name="familyname" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "familyname")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="street">Straße:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="street" name="street" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "street")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="houseNumber">Hausnummer:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="houseNumber" name="houseNumber" size="3" maxlength="5" value="<%=app.getPrintableValeFromSession(session, "houseNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="zipCode">Postleitzahl:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="zipCode" name="zipCode" size="5" maxlength="6" value="<%=app.getPrintableValeFromSession(session, "zipCode")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="city">Ort:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="city" name="city" size="10" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "city")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="phoneNumber">Telefon:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="phoneNumber" name="phoneNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "phoneNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="faxNumber">Faxnummer:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="faxNumber" name="faxNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "faxNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="data_left">
+ <label for="cellphoneNumber">Handy:</label>
+ </div>
+ <div class="data_right">
+ <input type="text" id="cellphoneNumber" name="cellphoneNumber" size="20" maxlength="255" value="<%=app.getPrintableValeFromSession(session, "cellphoneNumber")%>" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </div>
+ <div class="clear"></div>
+ </div>
+ </fieldset>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="5" class="table_footer">
+ <input type="reset" value="Formular zurücksetzen" />
+ <input type="submit" name="send" value="Bestellung abschliessen" <%=app.getDisabledHtmlFromSession(request, session)%> />
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
+ </div>
+ </div>
+ </body>
+</html>
<ul>
<li><a href="<%=request.getContextPath()%>/index.jsp" title="Eingangsseite">Home</a></li>
- <li><a href="<%=request.getContextPath()%>/order.jsp" title="Bestellseite">Bestellung</a></li>
+ <li><a href="<%=request.getContextPath()%>/preview.jsp" title="Bestellseite">Bestellung</a></li>
<li><a href="<%=request.getContextPath()%>/finished.jsp" title="Bestellung abgeschlossen">Vielen Dank</a></li>
<li><a href="<%=request.getContextPath()%>/bye.jsp" title="Sitzung beennden">Sitzung beenden</a></li>
</ul>