六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 242|回复: 0

Maven学习 之 Maven Kick Start【PetClinic】(四)

[复制链接]

升级  26%

21

主题

21

主题

21

主题

秀才

Rank: 2

积分
89
 楼主| 发表于 2013-2-8 00:49:10 | 显示全部楼层 |阅读模式
[置顶] 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-->
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表