From 0e1a2453e0be0d44a803a0017c30fa6946582838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 01:15:10 +0200 Subject: [PATCH] Added first Thymeleaf template to application (intro.html) Also modified template resolver configuration to remove ".html" suffix so that it is specified in Tiles definition names and therefore is easy to differentiate in case when the HTML has the same name as a definition (thus avoiding infinite recursion). --- .../webapp/WEB-INF/config/webmvc-config.xml | 1 - .../src/main/webapp/WEB-INF/intro.html | 29 +++++++++++++++++++ booking-mvc/src/main/webapp/WEB-INF/views.xml | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/intro.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 015df08..fd03282 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -51,7 +51,6 @@ - diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html new file mode 100644 index 0000000..4212158 --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -0,0 +1,29 @@ +
+

Welcome to Spring Travel

+

+ This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. +

+
+

+ The key features illustrated in this sample include: +

+ +

+ Start your Spring Travel experience +

+
diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index f6c7327..42aca64 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -6,7 +6,7 @@ - +