Servlet page decoration: Do people use Tiles, Sitemesh, or something else?

前端 未结 2 1241
有刺的猬
有刺的猬 2021-01-06 07:34

I\'ve used Tiles and Sitemesh for a number of years and while I personally prefer the Sitemesh style page decoration, I generally don\'t see a lot of mention of Sitemesh or

2条回答
  •  生来不讨喜
    2021-01-06 08:17

    We use Sitemesh, but I'm not a fan.

    We use the apply-decorator feature almost exclusively, in order to wrap one of our standard page layouts around the unique content of each page. I believe this is better done with JSP tag files, because they are built-in to every container and are part of the JSP specification.

    I haven't profiled it, but needlessly re-parsing all of the page content server-side in order to find the sitemesh tags and perform the re-writing has always bothered me too.

提交回复
热议问题