Apache Tiles 3 하단에 스크립트 넣는 방법
조회수 1169회
tiles를 이용 중 입니다. java나 xml 말고 jsp 단에서 각페이지 별 title 및 스크립트를 추가하고 싶은데 방법이 있을까요?
layout.JSP
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title><!-- 이곳에 title --></title>
<tiles:importAttribute name="head" />
</head>
<body>
<tiles:insertAttribute name="header" />
<tiles:insertAttribute name="body" />
<tiles:insertAttribute name="footer" />
<!-- script -->
<tiles:insertAttribute name="script" />
<!-- 이곳에 스크립트 -->
</body>
</html>
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력