创建一个新定义以更改标题内容:
<definition name="baseLayout" template="/WEB-INF/jsp/layout/layout.jsp"> <!-- Defined here --> <put-attribute name="head" value="" /> <put-attribute name="title" value="" /> ...</definition><definition name="videos" extends="baseLayout"> <!-- Overridden here --> <put-attribute name="head" value="/WEB-INF/jsp/videos-additionalHeadDefinitions.jsp" /> ...</definition>
并将其添加到您的layout.jsp中:
<head> <!-- This is content from the layout.jsp file --> <title>Welcome</title> ... <tiles:insertAttribute name="head" /></head>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)