12.07.2015 Views

4.3.1.Action의 역할 - Anyframe

4.3.1.Action의 역할 - Anyframe

4.3.1.Action의 역할 - Anyframe

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

View5.2.1.Page Layout 구성 방법5.2.1.1.구성 방법• JSP based approach : 페이지에 삽입할 기능이 많아질수록 복잡해짐. 소규모 어플리케이션에만 적합• include 지시어 사용 : 중복되는 코딩 부분의 재사용. 여전히 페이지에서 컨텐츠와 레이아웃이 혼재됨.• Template based approach : 페이지의 물리적인 영역을 은닉화하는 방법 제공. 컨텐츠와 레이아웃의 분리위 그림은 Tiles를 적용하여 페이지 레이아웃을 구성한 예이다.5.2.2.Tiles 설치• struts-tiles.jar을 WEB-INF/lib 디렉토리에 복사한다.• web.xml파일의 Action Servlet 정의 부분에 다음과 같이 추가한다.chainConfigorg/apache/struts/tiles/chain-config.xml• struts-config.xml의 plug-in에 TilesPlugin을 다음과 같이 등록한다.• Tiles를 사용하는 JSP에 다음과 같은 코드를 추가 한다.32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!