I need to get JSONP data from the QueryBuilder servlet , i.e, json data that it returns wrapped in the callback function, because I need to make this request cross domain. How can this be done?
You can write your own servlet for running query builder queries and returning JSONP. The query builder has a simple API [0] that is made for reading the parameters from a HTTP request. See the first sample in the javadoc. or have a look at slides 16 ff from this presentation [1].
[0] http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/search/QueryB uilder.html
[1] http://www.pro-vision.de/adaptto/downloads/2011_querybuilder.pdf
North America
Europe, Middle East and Africa
Asia Pacific