All pastes #270502 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-07 12:34 UTC
rendered paste body
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Beer Order Page</title>
    </head>
    <body>

    <h1>Please select beer and enter quantity</h1>
   
    <html:errors />
    

    <html:form action="submitOrder.do">
        <html:hidden property="customerID" value=""/> 
        <html:hidden property="productID" />
        <html:hidden property="customerName" /><br>
        
        <table border="1">
            <th>
                <td><c:out value="Product ID"/>  </td>
                <td><c:out value="Product Name"/>  </td>
                <td><c:out value="Price"/>  </td>
             </th>
             <c:forEach  var="Product"  items="${applicationtScope.productList}" />
             <tr>
                    <td><c:out value="${productID}"/>  </td>
                    <td><c:out value="${name}"/>  </td>
                    <td><c:out value="${Price}"/>  </td>
             </tr>
        </table>
        <html:submit />
    </html:form>
    
    </body>
</html>