<spring:url> anstelle des <base>-Tags für die Pfadkorrektur benutzt
authorKai Moritz <kai@juplo.de>
Tue, 17 Dec 2013 10:51:14 +0000 (11:51 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 19 Jan 2016 16:45:40 +0000 (17:45 +0100)
src/main/webapp/WEB-INF/templates/html5page.jsp
src/main/webapp/WEB-INF/templates/maincontent.jsp
src/main/webapp/WEB-INF/templates/navigation.jsp
src/main/webapp/WEB-INF/views/blog.jsp
src/main/webapp/WEB-INF/views/contact.jsp
src/main/webapp/WEB-INF/views/impressum.jsp
src/main/webapp/WEB-INF/views/projects.jsp
src/main/webapp/WEB-INF/views/projects/fix-swf.jsp
src/main/webapp/WEB-INF/views/projects/fix-swf/getting-started.jsp
src/main/webapp/WEB-INF/views/projects/fix-swf/overview.jsp
src/main/webapp/WEB-INF/views/projects/typo.jsp

index 3617d67..46c4e08 100644 (file)
@@ -3,32 +3,33 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <html>
   <head>
     <title>juplo - <t:getAsString name="title"/></title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" />
-    <link rel="stylesheet" type="text/css" href="css/base.css" />
+    <link rel="stylesheet" type="text/css" href="${base}css/base.css" />
     <style type="text/css">
-      @import 'css/screen.css' screen and (min-width: 960px);
-      @import 'css/phone.css' screen and (max-width: 599px);
-      @import 'css/tiny.css' screen and (max-width: 399px);
+      @import '${base}css/screen.css' screen and (min-width: 960px);
+      @import '${base}css/phone.css' screen and (max-width: 599px);
+      @import '${base}css/tiny.css' screen and (max-width: 399px);
     </style>
-    <script src="js/base.js"></script>
+    <script src="${base}js/base.js"></script>
     <!--[if IE 8]>
-      <script src="js/ie8.js"></script>
+      <script src="${base}js/ie8.js"></script>
     <![endif]-->
     <!--[if IE 7]>
-      <script src="js/ie7.js"></script>
+      <script src="${base}js/ie7.js"></script>
     <![endif]-->
     <!--[if lt IE 7]>
-      <script src="js/ie6.js"></script>
+      <script src="${base}js/ie6.js"></script>
     <![endif]-->
   </head>
   <body onload="prettyPrint()">
     <div id="page" class="<t:getAsString name="contentclass"/>">
       <header id="header">
-        <a href="/" title="Home" id="logo">juplo</a>
+        <a href="${base}index.html" title="Home" id="logo">juplo</a>
         <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
         <hr class="h" />
       </header>
@@ -59,8 +60,8 @@
         <hr />
         <ul id="footerlinks">
           <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
-          <li class="f"><a class="f" href="contact.html">Contact</a></li>
-          <li class="f"><a class="f" href="impressum.html">Impressum</a></li>
+          <li class="f"><a class="f" href="${base}contact.html">Contact</a></li>
+          <li class="f"><a class="f" href="${base}impressum.html">Impressum</a></li>
         </ul>
       </footer>
     </div>
index f368dd8..c710ebb 100644 (file)
@@ -1,10 +1,12 @@
 <%@page contentType="text/html;charset=UTF-8"%>
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <p>
-  <strong>Lorem ipsum</strong> dolor <a href="projects/typo.html">sit amet</a>, consectetur adipisicing elit, sed do
+  <strong>Lorem ipsum</strong> dolor <a href="${base}projects/typo.html">sit amet</a>, consectetur adipisicing elit, sed do
   eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
-  ad minim veniam, quis nostrud <a href="dort">exercitation</a> ullamco laboris nisi ut
+  ad minim veniam, quis nostrud <a href="#dort">exercitation</a> ullamco laboris nisi ut
   aliquip ex ea commodo consequat. Duis aute irure dolor in
   reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
   pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
index af77e17..385d09f 100644 (file)
@@ -1,9 +1,11 @@
 <%@page contentType="text/html;charset=UTF-8"%>
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <h1 class="nav">Navigation</h1>
 <h2 class="nav menu">Section-Menu</h2>
 <ul id="menu">
-  <li class="m blog"><a href="blog.html" class="m">Blog</a></li>
-  <li class="m projects"><a href="projects.html" class="m">Projects</a></li>
+  <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
+  <li class="m projects"><a href="${base}projects.html" class="m">Projects</a></li>
 </ul>
index e0b6428..aa33cc7 100644 (file)
@@ -2,10 +2,12 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Blog" type="string"/>
     <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
     <li class="b"><strong class="b">Blog</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
@@ -13,7 +15,7 @@
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu">
       <li class="m blog"><strong class="m">Blog</strong></li>
-      <li class="m projects"><a href="projects.html" class="m">Projects</a></li>
+      <li class="m projects"><a href="${base}projects.html" class="m">Projects</a></li>
     </ul>
   </t:putAttribute>
   <t:putAttribute name="marginalcontent" type="string">
index 2fc10c1..330b653 100644 (file)
@@ -2,10 +2,12 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="ONECOLUMN">
   <t:putAttribute name="title" value="Contact" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
     <li class="b"><strong class="b">Contact</strong></li>
   </t:putAttribute>
   <t:putAttribute name="marginalcontent" type="string" value=""/>
index 45946d2..cdbd978 100644 (file)
@@ -2,10 +2,12 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="ONECOLUMN">
   <t:putAttribute name="title" value="Impressum" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
     <li class="b"><strong class="b">Impressum</strong></li>
   </t:putAttribute>
   <t:putAttribute name="marginalcontent" type="string" value=""/>
index a33a477..98fbdb4 100644 (file)
@@ -2,27 +2,29 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Projects" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
     <li class="b"><strong class="b">Projects</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
     <h1 class="nav">Navigation</h1>
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu" class="s active">
-      <li class="m blog"><a href="blog" class="m">Blog</a></li>
+      <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
       <li class="m projects"><strong class="m">Projects</strong></li>
     </ul>
     <h2 class="nav submenu"><span class="s">Submenu for section </span><strong class="s">Projects</strong></h2>
     <ul id="submenu">
-      <li class="s sub"><a href="" class="s">hibernate4-maven-plugin</a></li>
-      <li class="s sub"><a href="projects/fix-swf.html" class="s">fix-swf</a></li>
-      <li class="s"><a href="" class="s">jquery.openx</a></li>
-      <li class="s"><a href="" class="s">halbekunst</a></li>
-      <li class="s sub"><a href="" class="s">accelerator</a></li>
-      <li class="s"><a href="projects/typo.html" class="s">Typography</a></li>
+      <li class="s sub"><a href="#" class="s">hibernate4-maven-plugin</a></li>
+      <li class="s sub"><a href="${base}projects/fix-swf.html" class="s">fix-swf</a></li>
+      <li class="s"><a href="#" class="s">jquery.openx</a></li>
+      <li class="s"><a href="#" class="s">halbekunst</a></li>
+      <li class="s sub"><a href="#" class="s">accelerator</a></li>
+      <li class="s"><a href="${base}projects/typo.html" class="s">Typography</a></li>
     </ul>
   </t:putAttribute>
 </t:insertDefinition>
index 3463258..ac7cc06 100644 (file)
@@ -2,39 +2,41 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Fix SWF" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
-    <li class="b"><a class="b" href="projects.html">Projects</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
+    <li class="b"><a class="b" href="${base}projects.html">Projects</a></li>
     <li class="b"><strong class="b">Fix SWF</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
     <h1 class="nav">Navigation</h1>
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu">
-      <li class="m blog"><a href="blog" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.html" class="m selected">Projects</a></li>
+      <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="${base}projects.html" class="m selected">Projects</a></li>
     </ul>
     <h2 class="nav submenu">
       <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.html">Projects</a>
+      <a class="s selected" href="${base}projects.html">Projects</a>
     </h2>
     <ul id="submenu" class="s">
-      <li class="s sub off"><a href="" class="s">hibernate4-maven-plugin</a></li>
+      <li class="s sub off"><a href="#" class="s">hibernate4-maven-plugin</a></li>
       <li class="s sub">
         <strong class="s">fix-swf</strong>
         <ul class="s active">
-          <li class="s"><a href="projects/fix-swf/overview.html" class="s">Overview</a></li>
-          <li class="s"><a href="projects/fix-swf/getting-started.html" class="s">Getting Started</a></li>
-          <li class="s"><a href="" class="s">FAQ</a></li>
-          <li class="s"><a href="" class="s">Documentation</a></li>
+          <li class="s"><a href="${base}projects/fix-swf/overview.html" class="s">Overview</a></li>
+          <li class="s"><a href="${base}projects/fix-swf/getting-started.html" class="s">Getting Started</a></li>
+          <li class="s"><a href="#" class="s">FAQ</a></li>
+          <li class="s"><a href="#" class="s">Documentation</a></li>
         </ul>
       </li>
-      <li class="s off"><a href="" class="s">jquery.openx</a></li>
-      <li class="s off"><a href="" class="s">halbekunst</a></li>
-      <li class="s sub off"><a href="" class="s">accelerator</a></li>
-      <li class="s off"><a href="projects/typo.html" class="s">Typography</a></li>
+      <li class="s off"><a href="#" class="s">jquery.openx</a></li>
+      <li class="s off"><a href="#" class="s">halbekunst</a></li>
+      <li class="s sub off"><a href="#" class="s">accelerator</a></li>
+      <li class="s off"><a href="${base}projects/typo.html" class="s">Typography</a></li>
     </ul>
   </t:putAttribute>
 </t:insertDefinition>
index cf406a6..830abc1 100644 (file)
@@ -2,40 +2,42 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Fix SWF - Getting Started" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
-    <li class="b"><a class="b" href="projects.html">Projects</a></li>
-    <li class="b"><a class="b" href="projects/fix-swf.html">Fix SWF</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
+    <li class="b"><a class="b" href="${base}projects.html">Projects</a></li>
+    <li class="b"><a class="b" href="${base}projects/fix-swf.html">Fix SWF</a></li>
     <li class="b"><strong class="b">Getting Started</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
     <h1 class="nav">Navigation</h1>
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu">
-      <li class="m blog"><a href="blog" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.html" class="m selected">Projects</a></li>
+      <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="${base}projects.html" class="m selected">Projects</a></li>
     </ul>
     <h2 class="nav submenu">
       <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.html">Projects</a>
+      <a class="s selected" href="${base}projects.html">Projects</a>
     </h2>
     <ul id="submenu" class="s">
-      <li class="s sub off"><a href="" class="s">hibernate4-maven-plugin</a></li>
+      <li class="s sub off"><a href="#" class="s">hibernate4-maven-plugin</a></li>
       <li class="s sub">
-        <a href="projects/fix-swf.html" class="s selected">fix-swf</a>
+        <a href="${base}projects/fix-swf.html" class="s selected">fix-swf</a>
         <ul class="s active">
-          <li class="s"><a href="projects/fix-swf/overview.html" class="s">Overview</a></li>
+          <li class="s"><a href="${base}projects/fix-swf/overview.html" class="s">Overview</a></li>
           <li class="s"><strong class="s">Getting Started</strong></li>
-          <li class="s"><a href="" class="s">FAQ</a></li>
-          <li class="s"><a href="" class="s">Documentation</a></li>
+          <li class="s"><a href="#" class="s">FAQ</a></li>
+          <li class="s"><a href="#" class="s">Documentation</a></li>
         </ul>
       </li>
-      <li class="s off"><a href="" class="s">jquery.openx</a></li>
-      <li class="s off"><a href="" class="s">halbekunst</a></li>
-      <li class="s sub off"><a href="" class="s">accelerator</a></li>
-      <li class="s off"><a href="projects/typo.html" class="s">Typography</a></li>
+      <li class="s off"><a href="#" class="s">jquery.openx</a></li>
+      <li class="s off"><a href="#" class="s">halbekunst</a></li>
+      <li class="s sub off"><a href="#" class="s">accelerator</a></li>
+      <li class="s off"><a href="${base}projects/typo.html" class="s">Typography</a></li>
     </ul>
   </t:putAttribute>
 </t:insertDefinition>
index 14a8bf3..682be34 100644 (file)
@@ -2,40 +2,42 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Fix SWF - Overview" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
-    <li class="b"><a class="b" href="projects.html">Projects</a></li>
-    <li class="b"><a class="b" href="projects/fix-swf.html">Fix SWF</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
+    <li class="b"><a class="b" href="${base}projects.html">Projects</a></li>
+    <li class="b"><a class="b" href="${base}projects/fix-swf.html">Fix SWF</a></li>
     <li class="b"><strong class="b">Overview</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
     <h1 class="nav">Navigation</h1>
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu">
-      <li class="m blog"><a href="blog" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.html" class="m selected">Projects</a></li>
+      <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="${base}projects.html" class="m selected">Projects</a></li>
     </ul>
     <h2 class="nav submenu">
       <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.html">Projects</a>
+      <a class="s selected" href="${base}projects.html">Projects</a>
     </h2>
     <ul id="submenu" class="s">
-      <li class="s sub off"><a href="" class="s">hibernate4-maven-plugin</a></li>
+      <li class="s sub off"><a href="#" class="s">hibernate4-maven-plugin</a></li>
       <li class="s sub">
-        <a href="projects/fix-swf.html" class="s selected">fix-swf</a>
+        <a href="${base}projects/fix-swf.html" class="s selected">fix-swf</a>
         <ul class="s active">
           <li class="s"><strong class="s">Overview</strong></li>
-          <li class="s"><a href="projects/fix-swf/getting-started.html" class="s">Getting Started</a></li>
-          <li class="s"><a href="" class="s">FAQ</a></li>
-          <li class="s"><a href="" class="s">Documentation</a></li>
+          <li class="s"><a href="${base}projects/fix-swf/getting-started.html" class="s">Getting Started</a></li>
+          <li class="s"><a href="#" class="s">FAQ</a></li>
+          <li class="s"><a href="#" class="s">Documentation</a></li>
         </ul>
       </li>
-      <li class="s off"><a href="" class="s">jquery.openx</a></li>
-      <li class="s off"><a href="" class="s">halbekunst</a></li>
-      <li class="s sub off"><a href="" class="s">accelerator</a></li>
-      <li class="s off"><a href="projects/typo.html" class="s">Typography</a></li>
+      <li class="s off"><a href="#" class="s">jquery.openx</a></li>
+      <li class="s off"><a href="#" class="s">halbekunst</a></li>
+      <li class="s sub off"><a href="#" class="s">accelerator</a></li>
+      <li class="s off"><a href="${base}projects/typo.html" class="s">Typography</a></li>
     </ul>
   </t:putAttribute>
 </t:insertDefinition>
index 67879b3..789cb01 100644 (file)
@@ -2,30 +2,32 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <t:insertDefinition name="BASEPAGE">
   <t:putAttribute name="title" value="Typo" type="string"/>
   <t:putAttribute name="breadcrumb">
-    <li class="b"><a class="b" href="/">Home</a></li>
-    <li class="b"><a class="b" href="projects.html">Projects</a></li>
+    <li class="b"><a class="b" href="${base}index.html">Home</a></li>
+    <li class="b"><a class="b" href="${base}projects.html">Projects</a></li>
     <li class="b"><strong class="b">Typography</strong></li>
   </t:putAttribute>
   <t:putAttribute name="navigation" type="string">
     <h1 class="nav">Navigation</h1>
     <h2 class="nav menu">Section-Menu</h2>
     <ul id="menu">
-      <li class="m blog"><a href="blog" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.html" class="m selected">Projects</a></li>
+      <li class="m blog"><a href="${base}blog.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="${base}projects.html" class="m selected">Projects</a></li>
     </ul>
     <h2 class="nav submenu">
       <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.html">Projects</a>
+      <a class="s selected" href="${base}projects.html">Projects</a>
     </h2>
     <ul id="submenu" class="s active">
-      <li class="s sub"><a href="" class="s">hibernate4-maven-plugin</a></li>
-      <li class="s sub"><a href="projects/fix-swf.html" class="s">fix-swf</a></li>
-      <li class="s"><a href="" class="s">jquery.openx</a></li>
-      <li class="s"><a href="" class="s">halbekunst</a></li>
-      <li class="s sub"><a href="" class="s">accelerator</a></li>
+      <li class="s sub"><a href="#" class="s">hibernate4-maven-plugin</a></li>
+      <li class="s sub"><a href="${base}projects/fix-swf.html" class="s">fix-swf</a></li>
+      <li class="s"><a href="#" class="s">jquery.openx</a></li>
+      <li class="s"><a href="#" class="s">halbekunst</a></li>
+      <li class="s sub"><a href="#" class="s">accelerator</a></li>
       <li class="s"><strong class="s">Typography</strong></li>
     </ul>
   </t:putAttribute>
@@ -34,7 +36,7 @@
       Lorem ipsum dolor <a href="#da">sit amet</a>, consectetur adipisicing elit,
       sed do eiusmod <strong>tempor incididunt</strong> ut labore et dolore
       magna aliqua. Ut enim ad minim veniam, quis nostrud
-      <a href="dort">exercitation</a> ullamco laboris nisi ut aliquip
+      <a href="#dort">exercitation</a> ullamco laboris nisi ut aliquip
       <em>ex ea</em> commodo consequat. Duis aute irure dolor in reprehenderit
       in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
       <strong>Excepteur sint <em>occaecat</em> cupidatat non proident</strong>,