gpt4 book ai didi

spring - 什么是sitemesh

转载 作者:行者123 更新时间:2023-12-02 04:49:04 25 4
gpt4 key购买 nike

我见过 Sitemesh 与 Spring 和 Freemarker(FTL) 一起使用。所以我想知道什么是 Sitemesh 及其与 FTL 的使用,并举例说明。

最佳答案

@参见:http://www.opensymphony.com/sitemesh/

What Is It?

  • SiteMesh is a web-page layout and decoration framework and web- application integration framework to aid in creating large sites consisting of many pages for which a consistent look/feel, navigation and layout scheme is required.

  • SiteMesh intercepts requests to any static or dynamically generated HTML page requested through the web-server, parses the page, obtains properties and data from the content and generates an appropriate final page with modifications to the original. This is based upon the well-known GangOfFour Decorator design pattern.

  • SiteMesh can also include entire HTML pages as a Panel within another page. This is similar to a Server-Side Include, except that the HTML document will be modified to create a visual window (using the document's Meta-data as an aid) within a page. Using this feature, Portal type web sites can be built very quickly and effectively. This is based upon the well-known GangOfFour Composite design pattern.

  • SiteMesh is built using Java 2 with Servlet, JSP and XML technologies. This makes it ideal for use with J2EE applications, however it can be integrated with server-side web architectures that are not Java based such as CGI (Perl/Python/C/C++/etc), PHP, ColdFusion, etc...

  • SiteMesh is very extensible and is designed in a way in which it is easy to extend for custom needs.

关于spring - 什么是sitemesh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5295474/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com