From 52c46d3394a9523725085abf9f60d8e54fb3518e Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 2 Jun 2012 21:48:44 +0200 Subject: [PATCH] =?utf8?q?Eine=20statische=20Spring-MVC-Seite=20zu=20den?= =?utf8?q?=20Beispielen=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config.xml | 12 +++++++ .../main/webapp/WEB-INF/views/simple-page.jsp | 15 ++++++++ .../src/main/webapp/WEB-INF/web.xml | 36 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 cachecontrol-example-jsp/src/main/webapp/WEB-INF/views/simple-page.jsp diff --git a/cachecontrol-example-jsp/src/main/resources/config.xml b/cachecontrol-example-jsp/src/main/resources/config.xml index e414ce93..b7a4892e 100644 --- a/cachecontrol-example-jsp/src/main/resources/config.xml +++ b/cachecontrol-example-jsp/src/main/resources/config.xml @@ -26,4 +26,16 @@ + + + + + + + + + + + + diff --git a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/views/simple-page.jsp b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/views/simple-page.jsp new file mode 100644 index 00000000..194cac5b --- /dev/null +++ b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/views/simple-page.jsp @@ -0,0 +1,15 @@ +<%@page contentType="text/html" pageEncoding="UTF-8" session="false" buffer="1kb" %> + + + + + + Simple Page + + + +

Hello World!

+

This is a really simple page...

+

This version of a really simple page was delivered via SPRING!

+ + diff --git a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml index 6e004b8c..64cdaf70 100644 --- a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml +++ b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml @@ -4,15 +4,22 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> + contextConfigLocation classpath:/config.xml + + + org.springframework.web.context.ContextLoaderListener + + + accelerator de.halbekunst.juplo.cachecontrol.AcceleratorFilter @@ -23,6 +30,9 @@ de.halbekunst.juplo.test.LoggingHttpServletResponseFilter + + + logger *.jsp @@ -44,15 +54,41 @@ accelerator /test-servlet + + accelerator + /spring/* + + + + test-servlet de.halbekunst.juplo.test.TestServlet + + dispatcher-servlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + + + + 1 + + + + + test-servlet /test-servlet + + dispatcher-servlet + /spring/* + + -- 2.20.1