Revision: 17937
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 17, 2009 07:45 by ff1959
Initial Code
top:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:include page="doctype.jsp"/>
<jsp:include page="html.jsp"/>
doctype.jsp:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
html.jsp:
<%-- -*- html -*- --%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%-- The template for all web page generation --%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<jsp:include page="head.jsp"/>
<body id="<s:property value='dom.pageBodyId'/>">
<jsp:include page="nav.jsp" />
<div id="content">
<jsp:include page="contentPreamble.jsp"/>
<jsp:include page="content.jsp"/>
<jsp:include page="footer.jsp"/>
</div>
</body>
</html>
head.jsp:
<%-- -*- html -*- --%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<head>
<title><s:text name="title"/></title>
<meta name="keywords" content="log analysis"/>
<link rel="stylesheet"
type="text/css"
href="css/dsee.css"
media="screen">
</head>
content.jsp:
<%-- -*- html -*- --%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:bean name="packageName.PageKeys" var="pageKeys"/>
<%--
This page includes the requested content page. Each action
sets the 'pageContent' parameter.
--%>
<s:if test="pageContent == #pageKeys.mainPageKey">
<jsp:include page="main.jsp"/>
</s:if>
<s:elseif test="pageContent == #pageKeys.configPageKey">
<jsp:include page="config.jsp"/>
</s:elseif>
<s:elseif test="pageContent == #pageKeys.helpPageKey">
<jsp:include page="help.jsp"/>
</s:elseif>
Initial URL
Initial Description
Code snippets to use as a template for consistent HTML page generation
Initial Title
JSP templates for Struts2
Initial Tags
html
Initial Language
HTML