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:

Neuen Anhang hinzuf�gen

Du bist nicht autorisiert, Anh�nge zu dieser Seite hochzuladen.
« Diese Seite (Version-) wurde zuletzt am 19-Dez-2011 08:51 von gerdziegler.de ge�ndert.