From c4fa037d748864c1b73edff09b4be8bf680f6f41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 10 Apr 2018 15:17:59 +0200 Subject: [PATCH] Add exo4 code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ROOT/exo4/META-INF/context.xml | 2 ++ ROOT/exo4/bienvenue.jsp | 5 +++++ ROOT/exo4/date.jsp | 10 ++++++++++ ROOT/exo4/include.jsp | 1 + ROOT/exo4/script-page-contenttype-html.jsp | 8 ++++++++ ROOT/exo4/script-page-contenttype-xml.jsp | 8 ++++++++ 6 files changed, 34 insertions(+) create mode 100644 ROOT/exo4/META-INF/context.xml create mode 100644 ROOT/exo4/bienvenue.jsp create mode 100644 ROOT/exo4/date.jsp create mode 100644 ROOT/exo4/include.jsp create mode 100644 ROOT/exo4/script-page-contenttype-html.jsp create mode 100644 ROOT/exo4/script-page-contenttype-xml.jsp diff --git a/ROOT/exo4/META-INF/context.xml b/ROOT/exo4/META-INF/context.xml new file mode 100644 index 0000000..00e2ff6 --- /dev/null +++ b/ROOT/exo4/META-INF/context.xml @@ -0,0 +1,2 @@ + diff --git a/ROOT/exo4/bienvenue.jsp b/ROOT/exo4/bienvenue.jsp new file mode 100644 index 0000000..1f0b32d --- /dev/null +++ b/ROOT/exo4/bienvenue.jsp @@ -0,0 +1,5 @@ + + + Bienvenue au cours d'applications web + + diff --git a/ROOT/exo4/date.jsp b/ROOT/exo4/date.jsp new file mode 100644 index 0000000..8634bba --- /dev/null +++ b/ROOT/exo4/date.jsp @@ -0,0 +1,10 @@ +<%@ page import="java.io.*, java.util.*, javax.servlet.*" %> + + + Aujourd'hui est le + <% + Date date = new Date(); + out.print(date.toString()); + %> + + diff --git a/ROOT/exo4/include.jsp b/ROOT/exo4/include.jsp new file mode 100644 index 0000000..6e7133e --- /dev/null +++ b/ROOT/exo4/include.jsp @@ -0,0 +1 @@ +<%@ include file="bienvenue.jsp" %> diff --git a/ROOT/exo4/script-page-contenttype-html.jsp b/ROOT/exo4/script-page-contenttype-html.jsp new file mode 100644 index 0000000..5d07fde --- /dev/null +++ b/ROOT/exo4/script-page-contenttype-html.jsp @@ -0,0 +1,8 @@ +<%@ page contentType="text/html; charset=ISO-8859-1" %> + + + + Bonjour + + + diff --git a/ROOT/exo4/script-page-contenttype-xml.jsp b/ROOT/exo4/script-page-contenttype-xml.jsp new file mode 100644 index 0000000..d7a72a3 --- /dev/null +++ b/ROOT/exo4/script-page-contenttype-xml.jsp @@ -0,0 +1,8 @@ +<%@ page contentType="text/xml, charset=ISO-8859-1" %> + + + + Bonjour + + + -- 2.34.1