'Pattern'에 해당되는 글 1건

  1. 2010.01.03 [SiteMesh] layout Framework!!
스터뒤ºㅁº2010. 1. 3. 17:55
SiteMesh는 OpenSource Layout Decoration engine입니다.
http://www.opensymphony.com/sitemesh/download.html 사이트 에서 다운로드 받을 수 있습니다.
위의 사이트에서 jar 파일을 다운로드 받은 뒤 library에 추가해서 이용하면 됩니다.


- OpenSource J2EE Layout and decoration engine
- 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
Posted by 룹씨