开发者

Good Java HTML package?

I need some utility class to use in order to write some results to a html file. I did this manually and it works but I'm pretty sure there has to be some free existing package out there that is more reliable, easy to use and formats the html in a nice way. Any suggestions?

I don't need 开发者_JAVA百科a HTML parser, but something to generate good-looking HTML.


I've been using Google Closer templates. Some other (and maybe more commonly used) suggestions are the StringTemplate library. Freemarker is another option as well.

Its worth mentioning that all of them provide basic logical constructs (if/else/foreach) within your template files, so its up to you to decide to use them or not. This is the source of a lot of criticisms for these frameworks because it doesn't encourage the decoupling of controllers and views that MVC pattern calls for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜