I'm writing a class extending javax.servlet.http.HttpServlet.
In the doGet() method, I parse URI and based on extracted value, I query database and display query results on the current page. However, I don't want to explicitly write code to generate html output, what content rendering technologies are available?
1. XSLT, in this case you need to write XML and XSL Stylesheet.
You might want to look at frameworks as Echo which allow you to fully specify a page in Java in a similar fashion as Swing.