out += "<tr>\n";
out += "Books: \n";
out += "</tr>\n";
}
for(Iterator<BookInformation> i = biol.iterator(); i.hasNext();){
BookInformation bio = i.next();
SaveonbookService sbss = SaveonBookServiceFactory.getSaveonbookService();
String optimizedTitle = sbss.getOptimizedTitle(bio);
String searchTitle = optimizedTitle.replaceAll(" ", "%20");
out += "<tr>\n";
out += "<table>\n";
out += "<tr>\n";
out += "<a href=\"http://saveonbook.com/search/title-search.jsp?title="+searchTitle+"&active=0\">SaveOnBook</a>";
out += "</tr>\n";
out += "<tr>\n";
out += "<td><b>Title: </b>"+bio.getTitle()+" - "+bio.getRequired()+"</td>\n";
int pr[] = sbss.getPriceRange(sbss.titleSearch(optimizedTitle));
out += "<td><b>Price Range </b>: $"+pr[0]+" - $"+pr[1]+"</td>\n";
out += "</tr>\n";
out += "</table>\n";
out += "</tr>\n";
}
for(Iterator<BookInformation> i = biol.iterator(); i.hasNext();){
BookInformation bio = i.next();
AmazonWebService aws = AmazonWebServiceFactory.getAmazonWebService();
AmazonBookModel abm = aws.search(bio.getISBN());
out += "<tr>\n";
out += "<table>\n";
if (!abm.getAsin().equals("")) {
out += "<tr>\n";
out += "<a href=\"" + abm.getDetailUrl() + "\">Amazon</a>";
out += "</tr>\n";
out += "<tr>\n";
out += "<td><img src=\"" + abm.getImageUrl() + "\"></td>\n";
out += "<td><b>Title: </b>" + abm.getTitle() + " - "
+ bio.getRequired() + "</td>\n";
out += "</tr>\n";
out += "<tr>\n";
out += "<td><b>Price(New): </b>" + abm.getPriceNew()
+ "</td>\n";
out += "</tr>\n";