Favorite Books
<% String[] bookTitle = { "Catch-22", "Something Happened", "Good as Gold" }; String[] isbn = { "0684833395", "0684841215", "0684839741" }; String amazonLink = "http://www.amazon.com/exec/obidos/ASIN/"; String bnLink = "http://search.barnesandnoble.com/booksearch/" + "isbnInquiry.asp?isbn="; String store = request.getParameter("store"); if (store == null) { store = "Amazon"; } for (int i = 0; i < bookTitle.length; i++) { if (store.equals("Amazon")) out.println("
" + bookTitle[i] + "
"); else out.println("
" + bookTitle[i] + "
"); } %>
Preferred Bookstore:
name="store"> Amazon.Com
name="store"> Barnes & Noble