I have been working on Java Servlets and HTML for quite a long time and have always had a problem keeping HTML code separate from Java code, but now I've found an answer.
While searching on the Net, I found a very good program called XMLC, which
really separates your HTML from Java code. It converts your HTML files
into Java classes, then allows you to manipulate those Java classes using DOM API
and regenerates the HTML. It's really cool.
If you are planning to use, or currently using, Java Technology
like Servlets or JSP for your next project, I would advise you to have a
look at XMLC.
Related Links:
http://www.enhydra.org For XMLC
http://www.w3.org DOM
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible.
Submit your tip here.