From e6d2baaed6c1d8131449e4852416f7c0c5a9fb72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 10 Apr 2018 15:47:08 +0200 Subject: [PATCH] Add exo5 code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ROOT/exo5/META-INF/context.xml | 2 ++ ROOT/exo5/date.jsp | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 ROOT/exo5/META-INF/context.xml create mode 100644 ROOT/exo5/date.jsp diff --git a/ROOT/exo5/META-INF/context.xml b/ROOT/exo5/META-INF/context.xml new file mode 100644 index 0000000..00e2ff6 --- /dev/null +++ b/ROOT/exo5/META-INF/context.xml @@ -0,0 +1,2 @@ + diff --git a/ROOT/exo5/date.jsp b/ROOT/exo5/date.jsp new file mode 100644 index 0000000..8d4bff7 --- /dev/null +++ b/ROOT/exo5/date.jsp @@ -0,0 +1,11 @@ +<%@ page import="java.io.*, java.util.*, javax.servlet.*" %> + + + <%! Date theDate = new Date(); + String getDate() { + return theDate.toString(); + } + %> + Aujourd'hui est le <%= getDate() %> + + -- 2.34.1