Add exo5 code.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 10 Apr 2018 13:47:08 +0000 (15:47 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 10 Apr 2018 13:47:08 +0000 (15:47 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ROOT/exo5/META-INF/context.xml [new file with mode: 0644]
ROOT/exo5/date.jsp [new file with mode: 0644]

diff --git a/ROOT/exo5/META-INF/context.xml b/ROOT/exo5/META-INF/context.xml
new file mode 100644 (file)
index 0000000..00e2ff6
--- /dev/null
@@ -0,0 +1,2 @@
+<Context path=""
+       antiResourceLocking="false" />
diff --git a/ROOT/exo5/date.jsp b/ROOT/exo5/date.jsp
new file mode 100644 (file)
index 0000000..8d4bff7
--- /dev/null
@@ -0,0 +1,11 @@
+<%@ page import="java.io.*, java.util.*, javax.servlet.*" %>
+<html>
+<body>
+    <%! Date theDate = new Date();
+        String getDate() {
+            return theDate.toString();
+        }
+    %>
+    Aujourd'hui est le <%= getDate() %>
+</body>
+</html>