People haven't embedded HTML in servlets for more than a decade. That's what
JSP and other templating libraries (like FreeMarker and Velocity) are for. If you aren't familiar with JSP, get a good book on servlets/JSP/JSTL (like Head First Servlets & JSP) that can teach you the whole lot.