ThamesBook - Java Server Pages Detail

barristerbedroomΛογισμικό & κατασκευή λογ/κού

28 Οκτ 2013 (πριν από 4 χρόνια και 16 μέρες)

89 εμφανίσεις

ThamesBook
-

Java Server Pages

Detail

JSP Name: index.jsp

Function: Served as home page

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_home.jsp" />


<!
--

start the middle column
--
>



<td width="404" valign
="top">


<h1>Welcome to ThamesBooks Bookstore</h1>


<p>


Welcome to ThamesBooks Bookstore where you can find the books with best selections and prices.


</p>


</td>


<!
--

end the middle column
--
>


<jsp:include page="/includes/column
_right_news.jsp" flush="true" />

<jsp:include page="/includes/footer.jsp" />


JSP Name: error_404.jsp

Function: Show page not found error message

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_all.jsp" />


<!
--

start the middle column
--
>


<%@ page isErrorPage="true" %>


<td width="404" valign="top">



<h1>404 Error</h1>


<p>The server was not able to find the file you requested.</p>


<p>To continue, click the Back button or select a link from this page.
</p>


<br>



<h2>Details</h2>


<p>Requested URI: ${pageContext.errorData.requestURI}</p>


</td>


<!
--

end the middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

error_java.jsp

Function:

Show Java Exception error messages

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_all.jsp" />


<!
--

start the middle column
--
>


<%@ page isErrorPage="true" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<td width="404" valign
="top">



<h1>Java Error</h1>


<p>Sorry, Java has thrown an exception.</p>


<p>To continue, click the back button or select a link from this page.</p>


<br>



<!
--

NOTE: When you're done with testing, you can disable


any of the followin
g details about the exception.
--
>


<h2>Details</h2>


<p>


${pageContext.errorData.servletName} threw a <br>


${pageContext.exception}<br>


<c:forEach var="line" items="${pageContext.errorData.throwable.stackTrace}">


&nbsp;&nbs
p;&nbsp;&nbsp;at ${line}<br>


</c:forEach>


</p>


</td>


<!
--

end the middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

error_sql.jsp

Function:
Show SQL error messages

<jsp:include page="/includes/header.html" />

<
jsp:include page="/includes/column_left_all.jsp" />


<!
--

start the middle column
--
>


<%@ page isErrorPage="true" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<td width="404" valign="top">



<h1>Database error</h1>


<p>
An error has been encountered with the database.</p>


<p>To continue, click the back button or select a link from this page.</p>


<br>



<!
--

NOTE: For troubleshooting use only
--
>


<h2>Error Details</h2>


<p>


${pageContext.errorD
ata.servletName} threw a <br>


${pageContext.exception}<br>


<c:forEach var="line" items="${pageContext.errorData.throwable.stackTrace}">


&nbsp;&nbsp;&nbsp;&nbsp;at ${line}<br>


</c:forEach>


</p>


</td>


<!
--

end the middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

customer_service
.jsp

Function:
Show
customer service contact information page

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_cust_serv.jsp" />


<!
--

start the

middle column
--
>



<td valign="top">


<h1>Customer Service</h1>


<p>


Welcome to our Customer service.


Whether you have a question or need assistance with an order, please contact us.


</p>


<p>


You
r comment

is greatly appreciated. We look forward to hearing from you!


</p>


</td>


<!
--

end the middle column
--
>

<!
--

begin the right column
--
>



<td valign="top" bgcolor="#FFFFFF">


<h1>Contact info</h1>


<h4>Phone:</h4>


<
p>1
-
123
-
888
-
8888</p>


<h4>FAX:</h4>


<p>1
-
123
-
999
-
9999</p>


<h4>Email:</h4>


<p><a
href="mailto:customerservice@thamsbooksstore.commm">customerservice@thamsbooksstore.com</
a></p>


</td>


<!
--

end the right column
--
>


<jsp:include pa
ge="/includes/footer.jsp" />


JSP Name:

/includes/column_left_all.jsp

Function:
Page left pane template

<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


<a href="/bookStore">Home</a><br><br>


<a href="/bookStore
/catalog">Browse our books</a><br><br>


<a href="/bookStore/email/join_email_list.jsp">Join our email list</a><br><br>


<a href="/bookStore/customer_service.jsp">Contact our customer service</a>


</p>


</td>


JSP Name:

/includes/
colu
mn_left_all_absolute
.jsp

Function:
Page left pane template


<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


<a href="http://localhost:8080/bookStore">Home</a><br><br>


<a href
="http://localhost:8080/bookStore/catalog">Browse through our catalog</a><br><br>


<a href="http://localhost:8080/bookStore/cart">Quick order a book</a><br><br>


<a href="http://localhost:8080/bookStore/customer_service.jsp">Contact customer
service</a>


</p>


</td>



JSP Name:

/includes/

column_left_catalog
.jsp

Function:

Page left pane template

<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


<a href="/bookStore/">Home</a><br><br>


Browse our books<br><br>


<a href="/bookStore/email/join_email_list.jsp">Join our email list</a><br><br>


<a href="/bookStore/customer_service.jsp">Contact our customer service</a>


</p>


</td>


JSP Name:

/includes/
column_lef
t_cust_serv
.jsp

Function:
Page left pane template


<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


<a href="/bookStore">Home</a><br><br>


<a href="/bookStore/catalog">Browse our books</a><br><br>


<a
href="/bookStore/email/join_email_list.jsp">Join our email list</a><br><br>


Contact our customer service


</p>


</td>


JSP Name:

/includes/
column_left_email
.jsp

Function:
Page left pane template


<td width="160" valign="top" bgcolor=
"#CCCCCC">


<p>


<br><br>


<a href="/bookStore">Home</a><br><br>


<a href="/bookStore/catalog">Browse our books</a><br><br>


Join our email list<br><br>


<a href="/bookStore/customer_service.jsp">Contact our customer
service</a>


</p>


</td>





JSP Name:

/includes/
column_left_home
.jsp

Function:
Page left pane template

<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


Home<br><br>


<a href="/bookStore/catalog">


Browse our books


</a><br><br>


<a href="/bookStore/email/join_email_list.jsp">


Join our email list


</a><br><br>


<a href="/bookStore/customer_service.jsp">


Contact our customer service


</a>


</p>

</td>


JSP Name:

/includes/
column_left_no_links
.jsp

Function:
Page left pane template

<td width="160" height="400" bgcolor="#CCCCCC">

</td>


JSP Name:

/includes/
column_left_order
.jsp

Function:
Page left pane template


<td width="160" valign="top" bgcolor="#CCCCCC">


<p>


<br><br>


<a href="/bookStore">Home</a><br><br>


<a href="/bookStore/email/join_email_list.jsp">Join our email list</a><br><br>


<a href="/bookStore/customer_service.jsp">Contact our customer service</a>


</p>


</td>





JSP Name:

/includes/
column_right_buttons
.jsp

Function:
Page right pane template

<td width="166" valign="top">

<p><br><br><br><br>


<form action="/bookStore/cart/displayCart?bookID=${book.bookID}" method="post">


<input type="submit" value="A
dd To Shopping Cart">


</form>

</p>

<br><br>

</td>


JSP Name:

/includes/
column_right_news
.jsp

Function:
Page right pane template

<td width="166" valign="top" bgcolor="#FFFFFF">


<h1>Time to build your book collections...</h1>


<br>


<h4>
Enjoy your favorite books during our FREE Shipping month in November!</h4>


<p>Order any of your favorite books from our web site and pay zero shipping charge during
November.</p>

</td>


JSP Name:

/includes/
column_right_no_links
.jsp

Function:
Page
right pane template


<td width="166" valign="top" bgcolor="#FFFFFF"></td>


JSP Name:

/includes/
footer
.jsp

Function:

footer template for all pages

</tr>

<tr>


<td colspan="3">


<p class="copyright" align="center">&copy; Copyright ${
currentYear}


Bruce , Steve &amp; Raymond project team. All rights reserved.</p>


</td>

</tr>

</table>


</body>

</html>





JSP Name:

/includes/
header
.jsp

Function:

header template for all pages

<!DOCTYPE HTML PUBLIC "
-
//W3C//DTD HTML 4.01
Transitional//EN"


"http://www.w3.org/TR/html4/loose.dtd">


<html>

<head>


<title>Thamesbooks Bookstore</title>


<link rel="stylesheet" href="/bookStore/store.css">

</head>


<body>


<table cellpadding="5" cellspacing="0" border="0" width="756">


<
tr>


<td colspan="3">


<img src="/bookStore/images/bookstore_top.jpeg" alt="Thamesbooks Bookstore"


width="700" height="150">


</td>

</tr>


<tr>


<td colspan="3" align="right" bgcolor="#CCCCCC">


<a href="/bookStore/ca
rt/displayCart?bookID=0"><b>Show Shopping Cart</b></a>


</td>

</tr>


<tr>




JSP Name:

/includes/bookdetaillist.jsp

Function:

Show the data from book table

<table border="0">

<tr>


<td width="179">


<img src="${book.imageLink}" width="175"
height="175">


</td>


<td width="5">


</td>


<td width="187" valign="top">


<h2>${book.title} </h2>


<h3>${book.description}</h3><br>


<p>ISBN: ${book.ISBN}<br>


Author: ${book.author}<br>


Publish Date: ${book.publishDate}<br>


Book format: ${bookformat.formatDesc}<br>


Our Price: ${book.priceCurrencyFormat}</p>


</td>

</tr>

</table>




JSP Name:

/cart/
book_detail
.jsp

Function:

Show the book detail page

<jsp:include page="/includes/header.html" />

<jsp:include page="/
includes/column_left_all.jsp" />


<!
--

start the middle column
--
>


<td width="404" valign="top">



<h2>


Book Detail:


</h2>


<br>


<jsp:include page="/includes/book_detaillist.jsp" />

</td>


<!
--

end the middle column
--
>


<jsp:include

page="/includes/column_right_buttons.jsp" />

<jsp:include page="/includes/footer.jsp" />


JSP Name:

/cart/
cart
.jsp

Function:

Show the shopping cart detail

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_all.jsp" /
>


<!
--

begin middle column
--
>


<td>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



<h1>Your Shopping Cart</h1>

<table cellspacing="5" border="0">


<tr>




<th align="left">Title</th>


<th align="left">Quantity</th>


<t
h align="left">Price</th>


<th align="left">Amount</th>


</tr>



<c:forEach var="item" items="${cart.items}">


<tr valign="top">


<td>${item.book.title}</td>


<td>


<form action="<c:url value='/cart/displayCart' />" method="post">


<input type="hidden" name="bookID" value="${item.book.bookID}">


<input type="text" size="2" name="quantity" value="${item.quantity}">


<input type="submit" value="Update">




</td>


<td>${item.book.priceCurrencyFormat}</td>


<t
d>${item.totalCurrencyFormat}</td>


<td><input type="submit" name="removeButton" value="Remove"></td>


</form>


</tr>


</c:forEach>




<tr>


<td colspan="3">


<p><b>To change the quantity for an item</b>, enter the new quantity



and click on the Update button.</p>


<p><b>To remove an item</b>, click on the Remove button.</p>


</td>


</tr>

</table>

<table>

<tr>

<td>

<form action="<c:url value='/cart/displayQuickOrder' />" method="post">


<input type="submit" value="Co
ntinue Shopping">

</form>

</td>

<td>

<form action="<c:url value='/cart/checkUser' />" method="post">


<input type="submit" value="Checkout">

</form>

</td>

</tr>

</table>

</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/footer.jsp" />





JSP Name:

/cart/
complete
.jsp

Function:

Show the order complete page

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_all_absolute.jsp" />


<!
--

begin middle column
--
>


<td valign="top">


<h1>Thank you, ${
user.firstName}</h1>


<p>Thank you ordering from us. Your order is begun processing and will be shipped

as soon as possible.

If you have any questions regarding your order, please feel free to contact us at

<a href="mailto:${custServEmail}">${custServEm
ail}</a></p>


</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/column_right_news.jsp" />

<jsp:include page="/includes/footer.jsp" />


JSP Name:

/cart/
cedit_card
.jsp

Function:

Show the credit card form page

<jsp:include

page="/includes/header.html" />

<jsp:include page="/includes/column_left_all_absolute.jsp" />


<!
--

begin middle column
--
>


<td>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<h1>Please enter your credit card information</h1>


<form
action="<c:url value='/cart/completeOrder' />" method="post">


<table border="0" cellpadding="5">


<tr>


<td align="right"><p>Credit card type</td>


<td><select name="creditCardType" size="1">


<option value="Visa">Visa</option>



<option value="Mastercard">Mastercard</option>


<option value="AmEx">American Express</option>


</select>


</td>


</tr>


<tr>


<td align="right">Card number</td>


<td><input type="text" size="20" name="cre
ditCardNumber"


maxlength="25"></td>


</tr>


<tr>


<td align="right"><p>Expiration date (mm/yyyy)</td>


<td><select name="creditCardExpirationMonth">


<option value="01">01


<option value="02">02


<option value="03">03


<option value="04">04


<option value="05">05


<option value="06">06


<option value="07">07


<option value="08">08


<
option value="09">09


<option value="10">10


<option value="11">11


<option value="12">12


</select>


/


<select name="creditCardExpirationYear">


<c:forEach var="year" ite
ms="${creditCardYears}">


<option value="${year}">${year}


</c:forEach>


</select>


</td>


</tr>


<tr>


<td></td>


<td align="left"><input type="submit" value="Submit Order"></td>


</tr>


</tabl
e>

</form>


</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

/cart/
invoice
.jsp

Function:

Show the invoice page

<jsp:include page="/includes/header.html" />

<jsp:include

page="/includes/column_left_all_absolute.jsp" />


<!
--

begin middle column
--
>


<td>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<h1>Your invoice</h1>


<table border="0" cellspacing="5">


<tr><td><b>Date:</b></td>


<
td width="400">${invoice.invoiceDateDefaultFormat}</td>


<td></td>


</tr>


<tr valign="top">


<td><b>Ship To:</b></td>


<td>${user.addressHTMLFormat}</td>


<td></td>


</tr>


<tr><td colspan="3"><hr></td></tr>


<tr><td><b>Title</b></td>



<td><b>Quantity</b></td>


<td><b>Price</b></td>


</tr>



<c:forEach var="item" items="${invoice.lineItems}">


<tr>


<td><p>${item.book.title}</td>


<td><p>${item.quantity}</td>


<td><p>${item.totalCurrencyFormat}</td>


</tr>


</c:fo
rEach>



<tr>


<td><b>Total:</b></td>


<td></td>


<td>${invoice.invoiceTotalCurrencyFormat}</td>


</tr>

</table>


<form action="<c:url value='/cart/user.jsp' />" method="post">


<input type="submit" value="Edit Address">

</form>


<form
action="<c:url value='/cart/credit_card.jsp' />" method="post">


<input type="submit" value="Continue">

</form>


</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

/cart/
quick_order
.jsp

Function:

Show the quick

order page so user can view book detail or add book to cart directly

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_home.jsp" />


<!
--

begin middle column
--
>


<td width="570" valign="top" colspan="2">

<%@ taglib pr
efix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<h1>Book List</h1>


<table cellpadding="5" border="0">


<tr valign="bottom">


<th align="left">Title</th>


<th align="left">Description</th>


<th align="left">Price</th>


<th align="left">&n
bsp;</th>


</tr>




<c:forEach var="books" items="${books}">


<tr valign="top">


<td>


<a href="


<c:url value='/catalog/displayBook?bookID=${books.bookID}'/>">


${books.title}


</a>


</td>


<td>


${books.description}


</td>


<td>${books.priceCurrencyFormat}</td>


<td>


<a href="


<c:url value='/cart/displayCart?bookID=${books.bookID}'/>">


Add To Cart


</a></td>


</tr>


</c:forEach>


</table>


</td>


<!
--

end middle column
--
>


<jsp:includ
e page="/includes/footer.jsp" />


JSP Name:

/cart/
user
.jsp

Function:

Show user information form page to let use enter personal information

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_all_absolute.jsp" />


<!
--

begin middle column
--
>


<td>


<script language="JavaScript">

function validate(form)

{


if (form.firstName.value=="")


{


alert("Please enter your first name");


form.firstName.focus();


}


else if (form.lastName.value
=="")


{


alert("Please enter your last name");


form.lastName.focus();


}


else if (form.emailAddress.value=="")


{


alert("Please enter your email address");


form.emailAddress.focus();


}


else if (form.address1.value=="")


{


alert("Please enter your street address line 1");


form.address1.focus();


}


else if (form.city.value=="")


{


alert("Please enter your city name");


form.city
.focus();


}


else if (form.state.value=="")


{


alert("Please enter your state");


form.state.focus();


}


else if (form.zip.value=="")


{


alert("Please enter your zip/postal code");


form.zip.focus();


}


else if (form.country.value=="")


{


alert("Please enter your country");


form.country.focus();


}


else


{


form.submit();


}

}

</script>


<%@ taglib prefix="c" uri="http://java.
sun.com/jsp/jstl/core" %>


<h1>Enter your name and contact information</h1>


<form action="<c:url value='/cart/processUser' />" method=post>

<table border="0" cellpadding="5">


<tr>


<td></td>


<td align=left>Required <font color=red>*</font></td>



</tr>


<tr>


<td align=right>First Name</td>


<td><input type="text" name="firstName" size="20" maxlength=20


value="${user.firstName}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Last Name</td>


<td><input type=text name="lastName" size=20


value="${user.lastName}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Email Address</td>


<td><input type=text name="emailAddress" size=20



value="${user.emailAddress}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Company</td>


<td><input type=text name="companyName" size=20


value="${user.companyName}"></td>


</tr>


<tr>


<td align=ri
ght>Address1</td>


<td><input type=text name="address1" size=20


value="${user.address1}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Address2</td>


<td><input type=text name="address2" size=20


value="${user.address2}"></td>


</tr>


<tr>


<td align=right>City</td>


<td><input type=text name="city" size=20


value="${user.city}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Sta
te</td>


<td><input type=text name="state" size=20


value="${user.state}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Zip Code</td>


<td><input type=text name="zip" size=20


value="${us
er.zip}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>Country</td>


<td><input type=text name="country" size=20


value="${user.country}">


<font color=red>*</font></td>


</tr>


<tr>


<td align=right>&nbsp;</td>


<td><input type="button" value="Continue" onClick="validate(this.form)"></td>


</tr>

</table>


</form>


</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/footer.jsp" />


JSP Name:

/catalog/index.jsp

Function:

Show the book category page

<jsp:include page="/includes/header.html" />

<jsp:include page="/includes/column_left_catalog.jsp" />


<!
--

start the middle column
--
>


<td width="404" valign="top">


<h1>Browse Books</h1>



<h4>Categories</h4
>


<p>


<br><a href="displayBook?bookCatagory=1001&bookID=0">Arts and Photography</a>


<br><a href="displayBook?bookCatagory=1002&bookID=0">Audiobooks</a>


<br><a href="displayBook?bookCatagory=1003&bookID=0">Business and Investing</a>


<br>
<a href="displayBook?bookCatagory=1004&bookID=0">Children Books</a>


<br><a href="displayBook?bookCatagory=1005&bookID=0">Computer and Internet</a>


<br><a href="displayBook?bookCatagory=1006&bookID=0">Cooking, Food and Wine</a>


</p>




</td
>


<!
--

end the middle column
--
>


<jsp:include page="/includes/column_right_news.jsp" flush="true" />

<jsp:include page="/includes/footer.jsp" />




JSP Name:

/email/join_email_list.jsp

Function:

Show the email entry form page

<jsp:include

page="/includes/header.html" />

<jsp:include page="/includes/column_left_email.jsp" />


<td width="404" valign="top">


<script language="JavaScript">

function validate(form)

{


if (form.firstName.value=="")


{


alert("Please enter your first name");


form.firstName.focus();


}


else if (form.lastName.value=="")


{


alert("Please enter your last name");


form.lastName.focus();


}


else if (form.emailAddress.value=="")


{


alert("Please enter your email address");


form.emailAddress.focus();


}


else


{


form.submit();


}

}

</script>


<h1>Join our email list</h1>

<p> and we will send you announcements about our new releases and specia
l offers.</p>


<p><i>${message}</i></p>


<form action="addToEmailList" method="post">

<table cellpadding="5" border="0">


<tr>


<td align="right"><p>First name:</td>


<td><input type="text" name="firstName"


value="${
user.firstName}">


</td>


</tr>


<tr>


<td align="right"><p>Last name:</td>


<td><input type="text" name="lastName"


value="${user.lastName}">


</td>


</tr>


<tr>


<td align="right"><p>Email ad
dress:</td>


<td><input type="text" name="emailAddress"


value="${user.emailAddress}">


</td>


</tr>


<tr>


<td></td>


<td><input type="button" value="Submit"


onClick="validate(this.f
orm)"></td>


</tr>

</table>

</form>


</td>


<jsp:include page="/includes/column_right_news.jsp" />

<jsp:include page="/includes/footer.jsp" />


JSP Name:

/email/
show_email_entry
.jsp

Function:

Show the email completed information page

<jsp:include

page="/includes/header.html" />

<jsp:include page="/includes/column_left_email.jsp" />


<td width="404" valign="top">



<h1>Thanks for joining our email list</h1>

<p>Here is the information that you entered:</p>


<table cellpadding="5" border="0">


<tr>


<td align="right">First name:</td>


<td>${user.firstName}</td>


</tr>


<tr>


<td align="right">Last name:</td>


<td>${user.lastName}</td>


</tr>


<tr>


<td align="right">Email address:</td>


<td>$
{user.emailAddress}</td>


</tr>

</table>



</td>


<jsp:include page="/includes/column_right_news.jsp" />

<jsp:include page="/includes/footer.jsp" />



JSP Name:

/process/invoice.jsp

Function:

Show the invoice detail page

<jsp:include

page="/includes/header.html" />

<jsp:include page="/includes/column_left_no_links.jsp" />


<!
--

begin middle column
--
>


<td valign="top">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<h1>Your invoice</h1>


<table border="0" cellspaci
ng="5">


<tr>


<td><b>Date:</b></td>


<td width="400">${invoice.invoiceDate}</td>


<td></td>


</tr>


<tr valign="top">


<td><b>Ship To:</b></td>


<td>${user.addressHTMLFormat}</td>


<td></td>


</tr>


<tr><td colspan="3"><hr></td></tr
>


<tr>


<td><b>Quantity</b></td>


<td><b>Description</b></td>


<td><b>Price</b></td>


</tr>




<c:forEach var="item" items="${invoice.lineItems}">


<tr>


<td>${item.quantity}</td>


<td>${item.product.description}</td>


<td>${item.to
talCurrencyFormat}</td>


</tr>


</c:forEach>



<tr><td colspan="3"><hr></td></tr>


<tr>


<td><b>Total:</b></td>


<td></td>


<td><p>${invoice.invoiceTotalCurrencyFormat}</td>


</tr>


<tr>


<td><b>Payment information:</b></td>


<td>${user.creditCardType}: ${user.creditCardNumber}


(${user.creditCardExpirationDate})</td>


</tr>


<tr>


<td><b>Email Address:</b></td>


<td><p>${user.emailAddress}</td>


</tr>

</table>

<form action="processInvoice" method="post">


<input type="submit" value="Process Invoice">

</form>

<form action="invoices.jsp" method="post">


<input type="submit" value="View Unprocessed Invoices">

</form>


</td>


<!
--

end middle column
--
>


<jsp:include page="/includes/footer.jsp" />