how to use HTML in servlets?

47 Views Asked by At

I'm interested in the front controller servlet:

https://martinfowler.com/eaaCatalog/frontController.html

I'd like to stick to servlet as much as possible, but am not terribly keen on using a multitude of system.out commands to print html.

How would I use "fragments" of html, stored literally as foo.html and bar.html, for different servlets to mix-and-match.

Yes, this a poorly researched question as it stands. I'll add research too it, only looking for general information please.

0

There are 0 best solutions below