标签:
<%@ 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" />
标签:
原文地址:http://www.cnblogs.com/MDK-L/p/5313829.html