Is any convinient way to dynamically render some page inside application and then retrieve its contents as InputStream or String?
For example, the simplest way is:

// generate url Link link = linkSource.createPageRenderLink("SomePageLink"); String urlAsString = link.toAbsoluteURI() + "/customParam/" + customParamValue; // get info stream from url HttpGet httpGet = new HttpGet(urlAsString); httpGet.addHeader("cookie", request.getHeader("cookie")); HttpResponse response = new DefaultHttpClient().execute(httpGet); InputStream is = response.getEntity().getContent(); ...But it seems it must be some more easy method how to archive the same result. Any ideas?


Check Solution