When it's need to render an html page on a server for either perform tests or extract content a web scraping tool like HtmlUnit can be used.

1 Rendering a page

HTMLProcessor proc = HTMLProcessor.getInstance();
proc.render("http://www.google.com", new HTMLView() {

	public void onPageRendered(HTMLExecution exec, HtmlPage page) {
		System.err.println("Rendered " + exec.getURL());

	public void onError(HTMLExecution exec, Exception ex)
		System.err.println("Error " + ex);