|
[置顶] Maven学习系列 目录PetClinic
5th Step Sitemesh实现
主页面已经搞定了,剩下就是sitemesh的页面了。如下:
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %><decorator:body />
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"prefix="decorator"%><decorator:body />
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"prefix="decorator"%><%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%><%@ taglib prefix="s" uri="/struts-tags"%><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet"href="<%=request.getContextPath()%>/styles/petclinic.css" type="text/css" /><title><decorator:titledefault='PetClinic :: a Spring Framework demonstration' /></title><decorator:head /></head><body><page:applyDecorator page="/includes/header.jsp" name="header" /><div id="main"><decorator:body /><page:applyDecorator page="/includes/footer.jsp" name="footer"encoding="UTF-8" /></div></body></html>
<%@ taglib prefix="s" uri="/struts-tags"%><html><head></head><body><table class="footer"><tr><td><a href="<s:url action="welcome"/>">Home</a></td><td align="right"><img src="<%=request.getContextPath()%>/images/springsource-logo.png"/></td></tr></table></body></html>
<html><head><title>PetClinic :: a Spring Framework demonstration</title></head><body></body></html>
OK,代码基本就是这些了。下面我们开始搭建开发环境。
<!--EndFragment--> |
|