I want my Java application to write HTML code in a file. Right now, I am hard coding HTML tags using java.io.BufferedWriter class. For Example:
BufferedWrite
Velocity is a good candidate for writing this kind of stuff. It allows you to keep your html and data-generation code as separated as possible.