Integrating +1 recommendations

In this section, we will learn how to add a Google +1 button to our products. Before integrating the Google +1 button, we have to change the product image URL for the books to point to real live links. It is required for the demonstration of Google+ recommendations. The following code shows the getAllListedBook() method. You can see that we have changed the image URL links to the images hosted on the http://www.packtpub.com website:

public class ProductStore { public static List<Product> getAllListedBook() { List<Product> listProduct = new ArrayList<Product>(); Product product3 = new Product(); product3.setTitle("Master Web Application Development with AngularJS"); product3.setCost(14); product3.setDescription("Lorem ...

Get Developing Responsive Web Applications with AJAX and jQuery now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.