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

旧街凉风 提交于 2019-11-30 17:59:37

问题


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 Tiles on the Internet.

Do people use Tiles and/or Sitemesh actively, or are there other libraries that have taken over in this capacity?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/988585/servlet-page-decoration-do-people-use-tiles-sitemesh-or-something-else

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!