diff --git a/YACOSWeb/WebContent/WEB-INF/decorators.xml b/YACOSWeb/WebContent/WEB-INF/decorators.xml new file mode 100644 index 0000000..1b935b1 --- /dev/null +++ b/YACOSWeb/WebContent/WEB-INF/decorators.xml @@ -0,0 +1,11 @@ + + + + + + + /* + + + + \ No newline at end of file diff --git a/YACOSWeb/WebContent/WEB-INF/decorators/empty.jsp b/YACOSWeb/WebContent/WEB-INF/decorators/empty.jsp new file mode 100644 index 0000000..bcf8158 --- /dev/null +++ b/YACOSWeb/WebContent/WEB-INF/decorators/empty.jsp @@ -0,0 +1,4 @@ +<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %> +<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %> + + diff --git a/YACOSWeb/WebContent/WEB-INF/decorators/footer.jsp b/YACOSWeb/WebContent/WEB-INF/decorators/footer.jsp new file mode 100644 index 0000000..a55c1a2 --- /dev/null +++ b/YACOSWeb/WebContent/WEB-INF/decorators/footer.jsp @@ -0,0 +1 @@ +

C'est le footer

\ No newline at end of file diff --git a/YACOSWeb/WebContent/WEB-INF/decorators/main.jsp b/YACOSWeb/WebContent/WEB-INF/decorators/main.jsp new file mode 100644 index 0000000..682ffc7 --- /dev/null +++ b/YACOSWeb/WebContent/WEB-INF/decorators/main.jsp @@ -0,0 +1,21 @@ + +<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %> +<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %> + + + + + + + <decorator:title default="YACOS" /> + + + + BODY de la page décorée : + + /BODY de la page décorée + +
+ + + \ No newline at end of file diff --git a/YACOSWeb/WebContent/WEB-INF/lib/sitemesh-2.3.jar b/YACOSWeb/WebContent/WEB-INF/lib/sitemesh-2.3.jar new file mode 100644 index 0000000..6586593 Binary files /dev/null and b/YACOSWeb/WebContent/WEB-INF/lib/sitemesh-2.3.jar differ diff --git a/YACOSWeb/WebContent/WEB-INF/web.xml b/YACOSWeb/WebContent/WEB-INF/web.xml index 90b1551..e191ee9 100644 --- a/YACOSWeb/WebContent/WEB-INF/web.xml +++ b/YACOSWeb/WebContent/WEB-INF/web.xml @@ -28,6 +28,17 @@ /spring /WEB-INF/tld/spring-form.tld - + + + + + sitemesh + com.opensymphony.module.sitemesh.filter.PageFilter + + + + sitemesh + /* + \ No newline at end of file