if (object instanceof PizzaApplication) {
// Instance is set, so casting should work
instance = (PizzaApplication) object;
+
+ // Debug message
+ instance.getLogger().debug(MessageFormat.format("Using existing instance {0} ...", object));
} else if (object instanceof Object) {
// Not correct instance
throw new ServletException("app is not set correctly"); //NOI18N
try {
// "service" is null, so initialize it
instance = new PizzaServiceApplication(context);
+
+ // Debug message
+ instance.getLogger().debug(MessageFormat.format("Created new instance {0} ...", object));
} catch (final UnsupportedDatabaseBackendException | SQLException | IOException | BadTokenException ex) {
throw new ServletException(ex);
}
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page import="org.mxchange.pizzaapplication.category.Category"%>
<%@page import="org.mxchange.pizzaapplication.database.category.PizzaCategoryDatabaseConstants"%>
</div>
</div>
- <jsp:include page="/static/admin/menu.jsp" flush="true" />
+ <jsp:include page="/static/admin/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
<div class="table_right">
- <jsp:include flush="true" page="/static/admin/parent_category_selection_box.jsp" />
+ <jsp:include flush="false" page="/static/admin/parent_category_selection_box.jsp" />
</div>
<div class="clear"></div>
</div>
</div>
- <jsp:include page="/static/admin/footer.jsp" flush="true" />
+ <jsp:include page="/static/admin/footer.jsp" flush="false" />
</body>
</html>
</div>
</div>
- <jsp:include page="/static/admin/menu.jsp" flush="true" />
+ <jsp:include page="/static/admin/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/admin/footer.jsp" flush="true" />
+ <jsp:include page="/static/admin/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.Iterator"%>
</div>
</div>
- <jsp:include page="/static/admin/menu.jsp" flush="true" />
+ <jsp:include page="/static/admin/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
<div class="table_right">
- <jsp:include flush="true" page="/static/admin/category_selection_box.jsp" />
+ <jsp:include flush="false" page="/static/admin/category_selection_box.jsp" />
</div>
<div class="clear"></div>
</div>
</div>
- <jsp:include page="/static/admin/footer.jsp" flush="true" />
+ <jsp:include page="/static/admin/footer.jsp" flush="false" />
</body>
</html>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
<div class="para">
- <jsp:include page="/static/forms/form_login.jsp" flush="true" />
+ <jsp:include page="/static/forms/form_login.jsp" flush="false" />
</div>
<div class="para">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
<div class="table_right">
<c:set var="enabled" scope="request" value="true" />
- <jsp:include page="/static/gender_selection_box.jsp" flush="true" />
+ <jsp:include page="/static/gender_selection_box.jsp" flush="false" />
</div>
<div class="clear"></div>
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
<%@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" %>
+<%@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" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
<h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
- <jsp:include page="/static/error/direct_call.jsp" flush="true" />
+ <jsp:include page="/static/error/direct_call.jsp" flush="false" />
</body>
</html>
<h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
</div>
- <jsp:include page="/static/admin/menu.jsp" flush="true" />
+ <jsp:include page="/static/admin/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
<h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
</div>
- <jsp:include page="/static/admin/menu.jsp" flush="true" />
+ <jsp:include page="/static/admin/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
<h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
- <jsp:include page="/static/error/direct_call.jsp" flush="true" />
+ <jsp:include page="/static/error/direct_call.jsp" flush="false" />
</body>
</html>
<h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
- <jsp:include page="/static/error/direct_call.jsp" flush="true" />
+ <jsp:include page="/static/error/direct_call.jsp" flush="false" />
</body>
</html>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
<%@page import="org.mxchange.pizzaapplication.product.Product"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
// Init application instance
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Map"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
<tr>
<td colspan="5">
- <fieldset id="personal_data">
- <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
-
- <div class="table_row">
- <div class="table_left">
- <label for="gender">Anrede</label>
- </div>
-
- <div class="table_right">
- <c:set var="enabled" scope="request" value="false" />
- <jsp:include page="/static/gender_selection_box.jsp" flush="true" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="companyname">Firmenname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="companyname" name="companyName" size="15" maxlength="255" value="${customer.companyName}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="surname">Vorname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="surname" name="surname" size="10" maxlength="255" value="${customer.surname}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="familyName">Nachname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="familyName" name="familyName" size="10" maxlength="255" value="${customer.familyName}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="street">Straße:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="street" name="street" size="20" maxlength="255" value="${customer.street}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="houseNumber">Hausnummer:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="houseNumber" name="houseNumber" size="3" maxlength="5" value="${customer.houseNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="zipCode">Postleitzahl:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="zipCode" name="zipCode" size="5" maxlength="6" value="${customer.zipCode}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="city">Ort:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="city" name="city" size="10" maxlength="255" value="${customer.city}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="phoneNumber">Telefon:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="phoneNumber" name="phoneNumber" size="20" maxlength="255" value="${customer.phoneNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="faxNumber">Faxnummer:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="faxNumber" name="faxNumber" size="20" maxlength="255" value="${customer.faxNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="cellphoneNumber">Handy:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="cellphoneNumber" name="cellphoneNumber" size="20" maxlength="255" value="${customer.cellphoneNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
- </div>
-
- <div class="clear"></div>
- </div>
- </fieldset>
+ <%-- @TODO Add navigation to login and registration form --%>
</td>
</tr>
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="org.mxchange.pizzaapplication.database.category.PizzaCategoryDatabaseConstants"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="org.mxchange.pizzaapplication.database.category.PizzaCategoryDatabaseConstants"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
%>
<option value="<%=gender.name()%>"<%
// Get gender from bean
- Gender value= customer.getGender();
+ Gender customerGender = customer.getGender();
// Test it
- if (value.equals(gender)) {
+ if (customerGender.equals(gender)) {
// Output selected="selected"
out.print("selected=\"selected\"");
}
Author : Roland Haeder
--%>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
</div>
</div>
- <jsp:include page="/static/menu.jsp" flush="true" />
+ <jsp:include page="/static/menu.jsp" flush="false" />
<div id="content_outer">
<div id="content_title">
</div>
</div>
- <jsp:include page="/static/footer.jsp" flush="true" />
+ <jsp:include page="/static/footer.jsp" flush="false" />
</body>
</html>