From 7fec97b1d54608ba0ebe1d111aea9eaa0069b14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 01:06:12 +0200 Subject: [PATCH] Applied Thymeleaf configuration * Applied Thymeleaf configuration and Template Engine creation to webmvc-config configuration file. * Made application run through Thymeleaf's own Tiles infrastructure. --- .../webapp/WEB-INF/config/webmvc-config.xml | 36 +++++++++++++++++++ .../webapp/WEB-INF/hotels/booking/views.xml | 8 ++--- .../src/main/webapp/WEB-INF/hotels/views.xml | 12 +++---- .../src/main/webapp/WEB-INF/layouts/views.xml | 6 ++-- booking-mvc/src/main/webapp/WEB-INF/views.xml | 16 ++++----- 5 files changed, 57 insertions(+), 21 deletions(-) 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 2d753ab..015df08 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 @@ -46,4 +46,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /WEB-INF/**/views.xml + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml index 3e1ee8b..dd3cb6d 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml @@ -5,12 +5,12 @@ - - + + - - + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index 42e7bc0..b3317e9 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -5,17 +5,17 @@ - + - - - + + + - - + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml index 0f94b92..a2a5039 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml @@ -1,10 +1,10 @@ + "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" + "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index 96200a1..f6c7327 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -1,20 +1,20 @@ + "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" + "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> - - + + - - + + - - + +