+ img.getDirectory().getPath() + "/" + img.getName());
imgList.addItem(im);
th.addParameter(Configuration.urlParam, cfg.getImageRootUrl(request)
+ img.getDirectory().getPath() + "/"
+ Configuration.thumbDirName + "/" + img.getName());
thumbList.addItem(th);
}
rsp.addParameter(Configuration.imgListParam, imgList);
rsp.addParameter(Configuration.thumbListParam, thumbList);
getServletContext().log("Json response: " + rsp.toString());
// Reply the Json response