http://www.opensymphony.com/sitemesh/download.html 사이트 에서 다운로드 받을 수 있습니다.
위의 사이트에서 jar 파일을 다운로드 받은 뒤 library에 추가해서 이용하면 됩니다.
- GoF Decorator Pattern for web application
- Simplicity, Speed, Flexibility
OPENSIMPONY 사이트에서는 SiteMesh를 다음과 같이 설명하고 있습니다.
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, Cold Fusion, etc...
SiteMesh is very extensible and is designed in a way in which it is easy to extend for custom needs.
SiteMesh와 비슷한 Tiles는 Composite View Framework 입니다.
Composite View 와 Decorator를 비교해 보면 다음과 같습니다.
Aspect | Composite View | Decorator |
Reusability | The different parts of the page (template and pieces) can be reused across the whole application. |
Each decorator can be reused, but the decoration itself can be applied to one page at a time. |
Ease of configuration | Each page must be defined explicitly. |
The decorator can be applied even to the entire application. |
Runtime configuration | The pages can be configured and organized at runtime |
Since one page is decorated at a time, this feature is not present. |
Performances | Low overhead for composition. | The page to be decorated has to be parsed. |
이와 관련한 자세한 내용은 다음 사이트에 들어가면 확인할 수 있습니다.
http://tiles.apache.org/framework/tutorial/pattern.html
참조 :: http://www.opensymphony.com/sitemesh/index.html
'스터뒤ºㅁº' 카테고리의 다른 글
Spring Security (0) | 2010.01.19 |
---|---|
[snow leopard] leopart -> snow leopard 삽질기 ...; (0) | 2010.01.14 |
XML 파싱 에러!!!! (0) | 2009.10.20 |
이클립스 갈릴레오 잠깐 사용해봐도 좋습니다 +_+ (4) | 2009.06.25 |
Eclipse galileo release!! (0) | 2009.06.25 |