From: Kai Moritz Date: Sat, 2 Jun 2012 19:48:44 +0000 (+0200) Subject: Eine statische Spring-MVC-Seite zu den Beispielen hinzugefügt X-Git-Url: https://juplo.de/gitweb/?p=percentcodec;a=commitdiff_plain;h=52c46d3394a9523725085abf9f60d8e54fb3518e Eine statische Spring-MVC-Seite zu den Beispielen hinzugefügt --- 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/* + +