Java is a server side language and html would be one of the primary outputs of a java request, I reckon. Html is a client side language, as far as the server is concerned it's just spewing out text.