Skip to content
Snippets Groups Projects
Commit d8014ae1 authored by Keith Donald's avatar Keith Donald Committed by Mic
Browse files

petclinic tiles

parent e7a6c22e
No related branches found
No related tags found
No related merge requests found
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ page session="false" %>
<html>
<head>
<title><tiles:insertAttribute name="title"/></title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resources/styles/main.css"/>
</head>
<body id="page-body">
<div id="page">
<div id="header">
<ul id="signin">
<c:choose>
<c:when test="${pageContext.request.userPrincipal != null}">
<p>Welcome ${pageContext.request.userPrincipal.name}</p>
<li><a href="<c:url value="/account/signout"/>">Sign Out</a></li>
</c:when>
<c:otherwise>
<li><a href="<c:url value="/account/signin"/>">Sign In</a></li>
<li><a href="<c:url value="/account/register"/>">Register</a></li>
</c:otherwise>
</c:choose>
</ul>
<div id="nav">
<ul>
<li><a href="<c:url value="/"/>">Home</a></li>
<li><a href="appointments">Appointments</a></li>
<li><a href="owners">Owners</a></li>
<li><a href="pets">Pets</a></li>
</ul>
</div>
</div>
<div id="content">
<tiles:insertAttribute name="content"/>
</div>
<div id="footer">
<ul id="legal">
<li>Privacy Policy</li>
<li>Terms of Service</li>
</ul>
<p>(c) 2009 <a href="http://www.springsource.org">springsource.org</a></p>
</div>
</div>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
<!-- ABSTRACT PAGE TEMPLATES -->
<definition name="page" template="/WEB-INF/layouts/page.jsp"/>
<!-- PAGES -->
<definition name="home" extends="page">
<put-attribute name="title" value="Welcome to Petclinic" type="string" />
<put-attribute name="content" value="/WEB-INF/home.jsp" />
</definition>
<!-- OWNER PAGES -->
</tiles-definitions>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment