Spring eingeführt, um die Tiles-Konfiguration zu vereinfachen
authorKai Moritz <kai@juplo.de>
Wed, 18 Sep 2013 23:48:21 +0000 (01:48 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 19 Jan 2016 16:44:46 +0000 (17:44 +0100)
28 files changed:
pom.xml
src/main/resources/README.txt [deleted file]
src/main/resources/log4j.xml [new file with mode: 0644]
src/main/webapp/WEB-INF/spring/mvc.xml [new file with mode: 0644]
src/main/webapp/WEB-INF/spring/tiles.xml [new file with mode: 0644]
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/tiles.xml [deleted file]
src/main/webapp/WEB-INF/views/blog.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/contact.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/impressum.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/index.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/projects.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/projects/fix-swf.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/projects/fix-swf/getting-started.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/projects/fix-swf/overview.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/views/projects/typo.jsp [new file with mode: 0644]
src/main/webapp/WEB-INF/web.xml
src/main/webapp/blog.jsp [deleted file]
src/main/webapp/contact.jsp [deleted file]
src/main/webapp/impressum.jsp [deleted file]
src/main/webapp/index.jsp [deleted file]
src/main/webapp/projects.jsp [deleted file]
src/main/webapp/projects/fix-swf.jsp [deleted file]
src/main/webapp/projects/fix-swf/getting-started.jsp [deleted file]
src/main/webapp/projects/fix-swf/overview.jsp [deleted file]
src/main/webapp/projects/typo.jsp [deleted file]

diff --git a/pom.xml b/pom.xml
index 3eaaa8f..5cda65f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
     <!-- Verwendete Versionen -->
+    <jsp-api.version>2.2.1</jsp-api.version>
+    <jstl.version>1.2</jstl.version>
+    <servlet-api.version>3.0.1</servlet-api.version>
     <slf4j.version>1.5.8</slf4j.version>
+    <springframework.version>3.2.4.RELEASE</springframework.version>
     <tiles.version>3.0.1</tiles.version>
 
   </properties>
 
   <dependencies>
 
+    <!-- Spring -->
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-webmvc</artifactId>
+      <version>${springframework.version}</version>
+    </dependency>
+
     <!-- Tiles -->
     <dependency>
       <groupId>org.apache.tiles</groupId>
       <scope>runtime</scope>
     </dependency>
 
+    <!-- Servlet -->
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>javax.servlet-api</artifactId>
+      <version>${servlet-api.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>javax.servlet.jsp-api</artifactId>
+      <version>${jsp-api.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>jstl</artifactId>
+      <version>${jstl.version}</version>
+      <scope>runtime</scope>
+    </dependency>
+
     <!-- Logging -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>${slf4j.version}</version>
+    </dependency>
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
   <build>
     <finalName>branding</finalName>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+          <encoding>utf8</encoding>
+          <showWarnings>true</showWarnings>
+        </configuration>
+      </plugin>
       <plugin>
         <groupId>org.lesscss</groupId>
         <artifactId>lesscss-maven-plugin</artifactId>
diff --git a/src/main/resources/README.txt b/src/main/resources/README.txt
deleted file mode 100644 (file)
index 34425ca..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Not empty!
diff --git a/src/main/resources/log4j.xml b/src/main/resources/log4j.xml
new file mode 100644 (file)
index 0000000..b6030f9
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%p - %C{1}.%M(%L) | %m%n"/>
+    </layout>
+  </appender>
+
+  <logger name="de.juplo">
+   <level value="trace"/>
+  </logger>
+
+  <logger name="org.springframework">
+    <level value="debug" />
+  </logger>
+
+  <root>
+    <level value="info"/>
+    <appender-ref ref="CONSOLE"/>
+  </root>
+
+</log4j:configuration>
diff --git a/src/main/webapp/WEB-INF/spring/mvc.xml b/src/main/webapp/WEB-INF/spring/mvc.xml
new file mode 100644 (file)
index 0000000..cc5a037
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:mvc="http://www.springframework.org/schema/mvc"
+       xsi:schemaLocation="
+           http://www.springframework.org/schema/beans
+           http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
+           http://www.springframework.org/schema/mvc
+           http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
+           ">
+
+  <!-- Damit das DispatcherServlet auf /* gemappt werden kann -->
+  <mvc:default-servlet-handler/>
+  <mvc:view-controller path="/" view-name="index"/>
+
+  <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
+    <property name="mappings">
+      <value>
+        /*.html=urlFilenameViewController
+        /**/*.html=urlFilenameViewController
+      </value>
+    </property>
+    <property name="order" value="10"/>
+  </bean>
+  <bean id="urlFilenameViewController" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
+
+  <!-- Tiles View-Resolver -->
+  <bean class="org.springframework.web.servlet.view.tiles3.TilesViewResolver"/>
+
+  <!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory -->
+  <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
+    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
+    <property name="prefix" value="/WEB-INF/views/"/>
+    <property name="suffix" value=".jsp"/>
+  </bean>
+
+  <bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
+    <property name="definitions">
+      <list>
+        <value>/WEB-INF/spring/tiles.xml</value>
+      </list>
+    </property>
+    <property name="useMutableTilesContainer" value="true"/>
+  </bean>
+
+</beans>
diff --git a/src/main/webapp/WEB-INF/spring/tiles.xml b/src/main/webapp/WEB-INF/spring/tiles.xml
new file mode 100644 (file)
index 0000000..ffeaa64
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
+       "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
+<tiles-definitions>
+
+  <definition name="BASEPAGE" template="/WEB-INF/templates/html5page.jsp">
+    <put-attribute name="title" value="TITLE IS MISSING" type="string"/>
+    <put-attribute name="maincontent" value="/WEB-INF/templates/maincontent.jsp" type="template"/>
+    <put-attribute name="contentclass" value="cols_2" type="string"/>
+    <put-attribute name="marginalcontent" value="/WEB-INF/templates/marginalcontent.jsp" type="template"/>
+    <put-attribute name="navigation" value="/WEB-INF/templates/navigation.jsp" type="template"/>
+  </definition>
+
+  <definition name="ONECOLUMN" extends="BASEPAGE">
+    <put-attribute name="contentclass" value="cols_1" type="string"/>
+  </definition>
+
+
+</tiles-definitions>
\ No newline at end of file
index d4873da..b98eda1 100644 (file)
@@ -32,8 +32,8 @@
     <footer id="footer">
       <ul id="footerlinks">
         <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
-        <li class="f"><a class="f" href="contact.jsp">Contact</a></li>
-        <li class="f"><a class="f" href="impressum.jsp">Impressum</a></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>
       </ul>
     </footer>
   </body>
index 3277bff..f368dd8 100644 (file)
@@ -2,7 +2,7 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <p>
-  <strong>Lorem ipsum</strong> dolor <a href="/projects/typo.jsp">sit amet</a>, consectetur adipisicing elit, sed do
+  <strong>Lorem ipsum</strong> dolor <a href="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
   aliquip ex ea commodo consequat. Duis aute irure dolor in
index ce8cada..af77e17 100644 (file)
@@ -4,6 +4,6 @@
 <h1 class="nav">Navigation</h1>
 <h2 class="nav menu">Section-Menu</h2>
 <ul id="menu">
-  <li class="m blog"><a href="blog.jsp" class="m">Blog</a></li>
-  <li class="m projects"><a href="projects.jsp" class="m">Projects</a></li>
+  <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>
 </ul>
diff --git a/src/main/webapp/WEB-INF/tiles.xml b/src/main/webapp/WEB-INF/tiles.xml
deleted file mode 100644 (file)
index ffeaa64..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE tiles-definitions PUBLIC
-       "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
-       "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
-<tiles-definitions>
-
-  <definition name="BASEPAGE" template="/WEB-INF/templates/html5page.jsp">
-    <put-attribute name="title" value="TITLE IS MISSING" type="string"/>
-    <put-attribute name="maincontent" value="/WEB-INF/templates/maincontent.jsp" type="template"/>
-    <put-attribute name="contentclass" value="cols_2" type="string"/>
-    <put-attribute name="marginalcontent" value="/WEB-INF/templates/marginalcontent.jsp" type="template"/>
-    <put-attribute name="navigation" value="/WEB-INF/templates/navigation.jsp" type="template"/>
-  </definition>
-
-  <definition name="ONECOLUMN" extends="BASEPAGE">
-    <put-attribute name="contentclass" value="cols_1" type="string"/>
-  </definition>
-
-
-</tiles-definitions>
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/views/blog.jsp b/src/main/webapp/WEB-INF/views/blog.jsp
new file mode 100644 (file)
index 0000000..803c597
--- /dev/null
@@ -0,0 +1,42 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Blog" type="string"/>
+  <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"><strong class="m">Blog</strong></li>
+      <li class="m projects"><a href="projects.html" class="m">Projects</a></li>
+    </ul>
+  </t:putAttribute>
+  <t:putAttribute name="marginalcontent" type="string">
+    <h1>Recent Posts</h1>
+    <ul>
+      <li><a href="#">Post 1</a></li>
+      <li><a href="#">Post 2</a></li>
+      <li><a href="#">Post 3</a></li>
+      <li><a href="#">Post 4</a></li>
+      <li><a href="#">Post 5</a></li>
+    </ul>
+    <h1>Categories</h1>
+    <ul>
+      <li><a href="#">Category 1</a></li>
+      <li><a href="#">Category 2</a></li>
+      <li><a href="#">Category 3</a></li>
+      <li><a href="#">Category 4</a></li>
+      <li><a href="#">Category 6</a></li>
+      <li><a href="#">Category 7</a></li>
+      <li><a href="#">Category 8</a></li>
+    </ul>
+    <h1>Tags</h1>
+    <ul>
+      <li><a href="#">Tag 1</a></li>
+      <li><a href="#">Tag 2</a></li>
+      <li><a href="#">Tag 3</a></li>
+      <li><a href="#">Tag 4</a></li>
+    </ul>
+  </t:putAttribute>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/contact.jsp b/src/main/webapp/WEB-INF/views/contact.jsp
new file mode 100644 (file)
index 0000000..0626885
--- /dev/null
@@ -0,0 +1,8 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="ONECOLUMN">
+  <t:putAttribute name="title" value="Contact" type="string"/>
+  <t:putAttribute name="marginalcontent" type="string" value=""/>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/impressum.jsp b/src/main/webapp/WEB-INF/views/impressum.jsp
new file mode 100644 (file)
index 0000000..5519596
--- /dev/null
@@ -0,0 +1,8 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="ONECOLUMN">
+  <t:putAttribute name="title" value="Impressum" type="string"/>
+  <t:putAttribute name="marginalcontent" type="string" value=""/>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/index.jsp b/src/main/webapp/WEB-INF/views/index.jsp
new file mode 100644 (file)
index 0000000..2759472
--- /dev/null
@@ -0,0 +1,7 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="ONECOLUMN">
+  <t:putAttribute name="title" value="Branding" type="string"/>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/projects.jsp b/src/main/webapp/WEB-INF/views/projects.jsp
new file mode 100644 (file)
index 0000000..c39e5c5
--- /dev/null
@@ -0,0 +1,24 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Projects" type="string"/>
+  <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.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>
+    </ul>
+  </t:putAttribute>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/projects/fix-swf.jsp b/src/main/webapp/WEB-INF/views/projects/fix-swf.jsp
new file mode 100644 (file)
index 0000000..fff0e39
--- /dev/null
@@ -0,0 +1,35 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Fix SWF" type="string"/>
+  <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.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="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>
+    </h2>
+    <ul id="submenu" class="s">
+      <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>
+        </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>
+    </ul>
+  </t:putAttribute>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/projects/fix-swf/getting-started.jsp b/src/main/webapp/WEB-INF/views/projects/fix-swf/getting-started.jsp
new file mode 100644 (file)
index 0000000..e29a1c6
--- /dev/null
@@ -0,0 +1,35 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Fix SWF - Getting Started" type="string"/>
+  <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.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="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>
+    </h2>
+    <ul id="submenu" class="s">
+      <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>
+        <ul class="s active">
+          <li class="s"><a href="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>
+        </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>
+    </ul>
+  </t:putAttribute>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/projects/fix-swf/overview.jsp b/src/main/webapp/WEB-INF/views/projects/fix-swf/overview.jsp
new file mode 100644 (file)
index 0000000..251cb31
--- /dev/null
@@ -0,0 +1,35 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Fix SWF - Overview" type="string"/>
+  <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.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="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>
+    </h2>
+    <ul id="submenu" class="s">
+      <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>
+        <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>
+        </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>
+    </ul>
+  </t:putAttribute>
+</t:insertDefinition>
diff --git a/src/main/webapp/WEB-INF/views/projects/typo.jsp b/src/main/webapp/WEB-INF/views/projects/typo.jsp
new file mode 100644 (file)
index 0000000..a55864c
--- /dev/null
@@ -0,0 +1,98 @@
+<%@page contentType="text/html;charset=UTF-8"%>
+<%@page pageEncoding="UTF-8"%>
+<%@page session="false" %>
+<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<t:insertDefinition name="BASEPAGE">
+  <t:putAttribute name="title" value="Typo" type="string"/>
+  <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.html" class="m">Blog</a></li>
+      <li class="m projects"><a href="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>
+    </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"><strong class="s">Typography</strong></li>
+    </ul>
+  </t:putAttribute>
+  <t:putAttribute name="maincontent" type="string">
+    <p>
+      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
+      <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>,
+      sunt in culpa qui officia deserunt mollit anim id est laborum.
+    </p>
+    <h2>Ein Link <a href="#link">im Titel</a></h2>
+    <p>Ein Link <a href="#link">im Text</a>.</p>
+    <h2>Normal / Italic / Bold / Bold+Italic</h2>
+    <ul>
+      <li>normal</li>
+      <li><em>italic</em></li>
+      <li><strong>bold</strong></li>
+      <li><strong><em>bold italic</em></strong></li>
+    </ul>
+    <p>
+      ÄäÖöÜüß@€¢
+      <strong>ÄäÖöÜüß@€¢</strong>
+      <em>ÄäÖöÜüß@€¢</em>
+      <strong><em>ÄäÖöÜüß@€¢</em></strong>
+    </p>
+    <h1>H1: Heading</h1>
+    <h2>H2: Heading</h2>
+    <h3>H3: Heading</h3>
+    <h4>H4: Heading</h4>
+    <h1>H1: Heading</h1>
+    <p>
+      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
+      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
+      ad minim veniam, quis nostrud exercitation 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
+      culpa qui officia deserunt mollit anim id est laborum.
+    </p>
+    <h2>H2: Heading</h2>
+    <p>
+      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
+      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
+      ad minim veniam, quis nostrud exercitation 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
+      culpa qui officia deserunt mollit anim id est laborum.
+    </p>
+    <h3>H3: Heading</h3>
+    <p>
+      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
+      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
+      ad minim veniam, quis nostrud exercitation 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
+      culpa qui officia deserunt mollit anim id est laborum.
+    </p>
+    <h4>H4: Heading</h4>
+    <p>
+      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
+      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
+      ad minim veniam, quis nostrud exercitation 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
+      culpa qui officia deserunt mollit anim id est laborum.
+    </p>
+  </t:putAttribute>
+</t:insertDefinition>
index b6cb19f..3be0c17 100644 (file)
@@ -6,8 +6,56 @@
 
   <display-name>branding</display-name>
 
+  <!-- Context Configuration locations for Spring XML files -->
+
+  <context-param>
+    <param-name>contextConfigLocation</param-name>
+    <param-value>
+      /WEB-INF/spring/mvc.xml
+    </param-value>
+  </context-param>
+
   <listener>
-    <listener-class>org.apache.tiles.web.startup.simple.SimpleTilesListener</listener-class>
+    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>
 
+
+  <!-- UTF-8 -->
+  <filter>
+    <filter-name>characterEncodingFilter</filter-name>
+    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
+    <init-param>
+      <param-name>encoding</param-name>
+      <param-value>UTF-8</param-value>
+    </init-param>
+    <init-param>
+      <param-name>forceEncoding</param-name>
+      <param-value>true</param-value>
+    </init-param>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>characterEncodingFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+
+  <!-- Handles all requests into the application -->
+
+  <servlet>
+    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
+    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
+    <init-param>
+      <param-name>contextConfigLocation</param-name>
+      <param-value>
+      </param-value>
+    </init-param>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
+    <url-pattern>*.html</url-pattern>
+  </servlet-mapping>
+
 </web-app>
diff --git a/src/main/webapp/blog.jsp b/src/main/webapp/blog.jsp
deleted file mode 100644 (file)
index d70321a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Blog" type="string"/>
-  <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"><strong class="m">Blog</strong></li>
-      <li class="m projects"><a href="projects.jsp" class="m">Projects</a></li>
-    </ul>
-  </t:putAttribute>
-  <t:putAttribute name="marginalcontent" type="string">
-    <div>
-      <h1>Recent Posts</h1>
-      <ul>
-        <li><a href="#">Post 1</a></li>
-        <li><a href="#">Post 2</a></li>
-        <li><a href="#">Post 3</a></li>
-        <li><a href="#">Post 4</a></li>
-        <li><a href="#">Post 5</a></li>
-      </ul>
-      <h1>Categories</h1>
-      <ul>
-        <li><a href="#">Category 1</a></li>
-        <li><a href="#">Category 2</a></li>
-        <li><a href="#">Category 3</a></li>
-        <li><a href="#">Category 4</a></li>
-        <li><a href="#">Category 6</a></li>
-        <li><a href="#">Category 7</a></li>
-        <li><a href="#">Category 8</a></li>
-      </ul>
-      <h1>Tags</h1>
-      <ul>
-        <li><a href="#">Tag 1</a></li>
-        <li><a href="#">Tag 2</a></li>
-        <li><a href="#">Tag 3</a></li>
-        <li><a href="#">Tag 4</a></li>
-      </ul>
-    </div>
-  </t:putAttribute>
-</t:insertDefinition>
diff --git a/src/main/webapp/contact.jsp b/src/main/webapp/contact.jsp
deleted file mode 100644 (file)
index 0626885..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="ONECOLUMN">
-  <t:putAttribute name="title" value="Contact" type="string"/>
-  <t:putAttribute name="marginalcontent" type="string" value=""/>
-</t:insertDefinition>
diff --git a/src/main/webapp/impressum.jsp b/src/main/webapp/impressum.jsp
deleted file mode 100644 (file)
index 5519596..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="ONECOLUMN">
-  <t:putAttribute name="title" value="Impressum" type="string"/>
-  <t:putAttribute name="marginalcontent" type="string" value=""/>
-</t:insertDefinition>
diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp
deleted file mode 100644 (file)
index 2759472..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="ONECOLUMN">
-  <t:putAttribute name="title" value="Branding" type="string"/>
-</t:insertDefinition>
diff --git a/src/main/webapp/projects.jsp b/src/main/webapp/projects.jsp
deleted file mode 100644 (file)
index 9a6bac6..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Projects" type="string"/>
-  <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.jsp" 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.jsp" 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.jsp" class="s">Typography</a></li>
-    </ul>
-  </t:putAttribute>
-</t:insertDefinition>
diff --git a/src/main/webapp/projects/fix-swf.jsp b/src/main/webapp/projects/fix-swf.jsp
deleted file mode 100644 (file)
index 703f445..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Fix SWF" type="string"/>
-  <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.jsp" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.jsp" class="m selected">Projects</a></li>
-    </ul>
-    <h2 class="nav submenu">
-      <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.jsp">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">
-        <strong class="s">fix-swf</strong>
-        <ul class="s active">
-          <li class="s"><a href="projects/fix-swf/overview.jsp" class="s">Overview</a></li>
-          <li class="s"><a href="projects/fix-swf/getting-started.jsp" 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.jsp" class="s">Typography</a></li>
-    </ul>
-  </t:putAttribute>
-</t:insertDefinition>
diff --git a/src/main/webapp/projects/fix-swf/getting-started.jsp b/src/main/webapp/projects/fix-swf/getting-started.jsp
deleted file mode 100644 (file)
index 89d847d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Fix SWF - Getting Started" type="string"/>
-  <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.jsp" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.jsp" class="m selected">Projects</a></li>
-    </ul>
-    <h2 class="nav submenu">
-      <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.jsp">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">
-        <a href="projects/fix-swf.jsp" class="s selected">fix-swf</a>
-        <ul class="s active">
-          <li class="s"><a href="projects/fix-swf/overview.jsp" 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>
-        </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.jsp" class="s">Typography</a></li>
-    </ul>
-  </t:putAttribute>
-</t:insertDefinition>
diff --git a/src/main/webapp/projects/fix-swf/overview.jsp b/src/main/webapp/projects/fix-swf/overview.jsp
deleted file mode 100644 (file)
index c43e6eb..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Fix SWF - Overview" type="string"/>
-  <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.jsp" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.jsp" class="m selected">Projects</a></li>
-    </ul>
-    <h2 class="nav submenu">
-      <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.jsp">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">
-        <a href="projects/fix-swf.jsp" 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.jsp" 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.jsp" class="s">Typography</a></li>
-    </ul>
-  </t:putAttribute>
-</t:insertDefinition>
diff --git a/src/main/webapp/projects/typo.jsp b/src/main/webapp/projects/typo.jsp
deleted file mode 100644 (file)
index db0c38a..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<%@page contentType="text/html;charset=UTF-8"%>
-<%@page pageEncoding="UTF-8"%>
-<%@page session="false" %>
-<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
-<t:insertDefinition name="BASEPAGE">
-  <t:putAttribute name="title" value="Typo" type="string"/>
-  <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.jsp" class="m">Blog</a></li>
-      <li class="m projects"><a href="projects.jsp" class="m selected">Projects</a></li>
-    </ul>
-    <h2 class="nav submenu">
-      <span class="s">Submenu for section</span>
-      <a class="s selected" href="projects.jsp">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.jsp" 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>
-  <t:putAttribute name="maincontent" type="string">
-    <p>
-      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
-      <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>,
-      sunt in culpa qui officia deserunt mollit anim id est laborum.
-    </p>
-    <h2>Ein Link <a href="#link">im Titel</a></h2>
-    <p>Ein Link <a href="#link">im Text</a>.</p>
-    <h2>Normal / Italic / Bold / Bold+Italic</h2>
-    <ul>
-      <li>normal</li>
-      <li><em>italic</em></li>
-      <li><strong>bold</strong></li>
-      <li><strong><em>bold italic</em></strong></li>
-    </ul>
-    <p>
-      ÄäÖöÜüß@€¢
-      <strong>ÄäÖöÜüß@€¢</strong>
-      <em>ÄäÖöÜüß@€¢</em>
-      <strong><em>ÄäÖöÜüß@€¢</em></strong>
-    </p>
-    <h1>H1: Heading</h1>
-    <h2>H2: Heading</h2>
-    <h3>H3: Heading</h3>
-    <h4>H4: Heading</h4>
-    <h1>H1: Heading</h1>
-    <p>
-      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
-      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
-      ad minim veniam, quis nostrud exercitation 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
-      culpa qui officia deserunt mollit anim id est laborum.
-    </p>
-    <h2>H2: Heading</h2>
-    <p>
-      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
-      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
-      ad minim veniam, quis nostrud exercitation 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
-      culpa qui officia deserunt mollit anim id est laborum.
-    </p>
-    <h3>H3: Heading</h3>
-    <p>
-      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
-      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
-      ad minim veniam, quis nostrud exercitation 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
-      culpa qui officia deserunt mollit anim id est laborum.
-    </p>
-    <h4>H4: Heading</h4>
-    <p>
-      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
-      eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
-      ad minim veniam, quis nostrud exercitation 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
-      culpa qui officia deserunt mollit anim id est laborum.
-    </p>
-  </t:putAttribute>
-</t:insertDefinition>