首页 > 其他 > 详细

sitemesh body 失效的问题

时间:2016-03-24 01:19:20      阅读:396      评论:0      收藏:0      [点我收藏+]
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title><sitemesh:title/></title>
    <%@include file="/WEB-INF/views/include/head.jsp" %>
    <sitemesh:head/>
</head>
<body <sitemesh:getProperty property="body.class" writeEntireProperty="true" />>
    <sitemesh:body/>
    <%@include file="/WEB-INF/views/include/footer.jsp" %>
</body>
</html>

用过的一看就明白了 关键在这一句 : <sitemesh:getProperty property="body.class" writeEntireProperty="true" />

sitemesh body 失效的问题

原文:http://www.cnblogs.com/MDK-L/p/5313829.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!