검색결과 리스트
글
정부 프레임워크에 타일즈 적용
pom.xml
<org.apache.tiles-version>2.2.2</org.apache.tiles-version>
<!-- tiles --> |
/WEB-INF/config/egovframework/springmvc/egov-com-servlet.xml
설명 tilesViewResolver 설정 을 1순위
viewResolver 2 순위로 설정하여 화면에 뿌림
타일즈가 아닐경우는 일반적인 jsp 호출
<bean id="tilesViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> |
layouts.xml
설정 맘대로 만지자.. 설정에 맞게만 ..
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> <tiles-definitions> <definition name="layouts-tiles" template="/WEB-INF/jsp/layouts-tiles.jsp"> <put-attribute name="header" value="/WEB-INF/jsp/header.jsp" /> <put-attribute name="content" value="" /> <put-attribute name="footer" value="/WEB-INF/jsp/footer.jsp" /> </definition> <definition name="*.tiles" extends="layouts-tiles"> <put-attribute name="content" value="/WEB-INF/jsp/{1}.jsp" /> </definition> <definition name="*/*.tiles" extends="layouts-tiles"> <put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}.jsp" /> </definition> <definition name="*/*/*.tiles" extends="layouts-tiles"> <put-attribute name="content" value="/WEB-INF/jsp/{1}/{2}/{3}.jsp" /> </definition> </tiles-definitions> |
jsp 파일 모음
RECENT COMMENT