]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Fixed form field name which must be equal to class' attribute's name and public getter
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Aug 2015 09:50:12 +0000 (11:50 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Aug 2015 09:50:12 +0000 (11:50 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/finished.jsp
web/form_handler/order.jsp
web/preview.jsp

index 012a8282b2aded8b2c842be999b9d183fb324b34..0339ebe6fe411ceab238b53a140da7c4d496439d 100644 (file)
                                                </tr>
 
                                                <tr>
-                                                       <td colspan="5" class="table_header">
+                                                       <td colspan="5" class="table_row">
                                                                <%
                                                                Iterator<Map.Entry<Field, Object>> fieldIterator = customer.iterator();
                                                                %>
index 926b2e58a6ad7943d944ae4ff31181a430299046..55539f0209bf5cde6e148938191a885c24117bec 100644 (file)
@@ -9,6 +9,7 @@
 <%@page import="java.lang.reflect.Field"%>
 <%@page import="java.util.Map"%>
 <%@page import="java.util.Iterator"%>
+<%@page import="java.text.MessageFormat"%>
 <%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
        PizzaApplication app = PizzaServiceApplication.getInstance(application);
 
        // Is it post?
-       if ("POST".equals(request.getMethod())) {
+       if ("POST".equals(request.getMethod())) { //NOI18N
                // Is POST, so continue with handling
                Iterator<Map.Entry<Field, Object>> fieldIterator = customer.iterator();
 
                while (fieldIterator.hasNext()) {
+                       // Get next field
                        Map.Entry<Field, Object> entry = fieldIterator.next();
 
                        // Debug message
-                       app.getLogger().debug("entry " + entry.getKey() + "=" + entry.getValue());
+                       app.getLogger().debug(MessageFormat.format("entry {0}={1}", entry.getKey(), entry.getValue())); //NOI18N
 
                        // Set it in session
                        app.setValueInSession(session, entry.getKey().getName(), entry.getValue());
index afebc53557008cf344a51984214bb2efa4963675..70fb334a0cbd3eedecf8fc87db9c13f1066ada29 100644 (file)
                                                                                        <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)%> />
+                                                                                       <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="familyname">Nachname:</label>
+                                                                                       <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)%> />
+                                                                                       <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>