1) Currently i'm providing static URL path as datasource instead of
servlet path, i tried the below method from pagination but not
workingdataSource: function(done) { $.ajax({ type: 'GET', url:
'/bin/amica/searchResultsServlet?q=' + 'queryString', success:
function(response) { done(response); } }); }2) How to include query
parameters in HTL script. For example I need to get the parameter value
'q'' attribute it to queryString dynamically after every
request? $('.demo').pagination({ dataSource:
'http://localhost:8080/bin/amica/searchServlet?q= + 'queryString',
locator: 'searchResults', pageSize: 5, prevText: "Previous", nextText:
"Next", callback: function(data, pagination) { var html =
template(data); $('.datacontainer').html(html); }