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

前端 未结 2 1240
有刺的猬
有刺的猬 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.

    0 讨论(0)
  • 2021-01-06 08:19

    I use sitemesh since it is less invasive than tiles. However I think that tiles is generally used in conjuction with structs 1.x?

    0 讨论(0)
提交回复
热议问题