--- /dev/null
+package de.juplo.branding.web;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.Resource;
+import javax.servlet.ServletContext;
+import org.springframework.stereotype.Component;
+
+
+@Component
+public class ApplicationConfig
+{
+ public static final String ATTRIBUTE_BASE = "base";
+
+ @Resource
+ private ServletContext context;
+
+ @PostConstruct
+ public void configureApplication()
+ {
+ context.setAttribute(ATTRIBUTE_BASE, context.getContextPath() + '/');
+ }
+}
\ No newline at end of file
<%@page session="false" %>
<%@page isErrorPage="true" %>
<%@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="NOMENU">
<t:putAttribute name="contentclass" value="nomenu withbackground" type="string"/>
<t:putAttribute name="title" value="404: Page not found" type="string"/>
<%@page session="false" %>
<%@page isErrorPage="true" %>
<%@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="NOMENU">
<t:putAttribute name="contentclass" value="nomenu withbackground" type="string"/>
<t:putAttribute name="title" value="An unexpected Error occured!" type="string"/>
<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"
+ xmlns:context="http://www.springframework.org/schema/context"
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
+ http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context-3.1.xsd
">
<!-- Damit das DispatcherServlet auf /* gemappt werden kann -->
<mvc:default-servlet-handler/>
<mvc:view-controller path="/" view-name="index"/>
+ <!-- Scann classpath for classes anntated as components -->
+ <context:component-scan base-package="de.juplo.branding"/>
+
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<value>
<%@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="/" />
<aside class="m">
<h1>What the f*#!@ is an <em>Impressum</em> ?!?</h1>
The german law enforces the so called <em>Impressum</em> to enable
<%@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="/" />
<li class="f" id="copyright">© <strong>mo</strong> 2013</li>
<li class="f"><a class="f" href="${base}impressum.html">Impressum</a></li>
<li class="f about"><a class="f" href="${base}about.html">About</a></li>
<%@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 id="logo"><a href="${base}index.html" title="Home" class="l">juplo</a></h1>
<%@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="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="${base}css/base.css" />
<style type="text/css">
<%@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>
<%@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="${base}projects/typo.html">sit amet</a>, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
<%@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" class="cf">
<%@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="/" />
<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/html-experimente.html">HTML-Experimente</a></li>
<%@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="/" />
<h2>HTML-Elemente / spezielle Seiten</h2>
<ul>
<li><a href="${base}test/formulare.html">Formulare</a></li>
<%@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" class="cf">
<%@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="About" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Professions" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="References" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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">
<%@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="" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Contact" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Impressum" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Datenschutz" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Google Analytics" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Haftung für Inhalte" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Haftung für Links" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="Urheberrechte" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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="NOMENU">
<t:putAttribute name="title" value="Branding" type="string"/>
<t:putAttribute name="header">
<%@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">
<%@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">
<%@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">
<%@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">
<%@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="test">
<t:putAttribute name="title" value="HTML-Experimente" type="string"/>
<t:putAttribute name="breadcrumb">
<%@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">
<%@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="test">
<t:putAttribute name="title" value="Nur das Basis-Layout" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Die für den Ausdruck angepasste Ansicht" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Diese Seite erzeugt einen Fehler!" type="string"/>
<t:putAttribute name="maincontent" type="string">
<%@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="test">
<t:putAttribute name="title" value="Fast leere Seite ohne Menü, aber mit Marginalinhalt" type="string"/>
<t:putAttribute name="contentclass" value="nomenu" type="string"/>
<%@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="test">
<t:putAttribute name="title" value="Fast leere Seite ohne Menü" type="string"/>
<t:putAttribute name="contentclass" value="nomenu" type="string"/>
<%@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="test">
<t:putAttribute name="title" value="Fast leere Seite mit Menü und Marginalinhalt" type="string"/>
<t:putAttribute name="maincontent" type="string">
<%@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="test">
<t:putAttribute name="title" value="Fast leere Seite mit Menü" type="string"/>
<t:putAttribute name="maincontent" type="string">
<%@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="test">
<t:putAttribute name="title" value="Formulare" type="string"/>
<t:putAttribute name="maincontent" type="string">
<%@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="test">
<t:putAttribute name="title" value="Nur das Basis-Layout" type="string"/>
<t:putAttribute name="htmlhead" type="string" value=""/>
<%@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="test">
<t:putAttribute name="title" value="Layout für Smartphones" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Nur das Basis-Layout und die Seitenaufteilung" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Nur das Basis-Layout und der Seitenkopf" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Symbol-Font" type="string"/>
<t:putAttribute name="maincontent" type="string">
<%@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="test">
<t:putAttribute name="title" value="Layout für Tablets" type="string"/>
<t:putAttribute name="htmlhead" type="string">
<%@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="test">
<t:putAttribute name="title" value="Layout für sehr kleine Bildschirmgrößen" type="string"/>
<t:putAttribute name="htmlhead" type="string">