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>
  • (•́ ✖ •̀)
    알 수 없는 사용자

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)