updated for 2.4.0
Google AJAX Search#
This shows how to connect to the Google AJAX Search API from ztemplates.
As usual, create the template and pojo class in the same directory.
Most code is straightforward, the only special thing here is how to pass your googleSearchKey to the @ZScript annotation. The value for the key is exposed by the pojo that is annotated with the @ZScript annotation - the pojo has to @ZExpose a property, similar to exposing it to the template.
There are 2 steps: