From: Jérôme Benoit Date: Tue, 10 Apr 2018 13:47:08 +0000 (+0200) Subject: Add exo5 code. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e6d2baaed6c1d8131449e4852416f7c0c5a9fb72;p=TD_webapps.git Add exo5 code. Signed-off-by: Jérôme Benoit --- 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() %> + +