From: Jérôme Benoit Date: Tue, 10 Apr 2018 14:24:19 +0000 (+0200) Subject: Add exo7 code. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9df2dec568231a9ce0e3cc6a0709922c9140e281;p=TD_webapps.git Add exo7 code. Signed-off-by: Jérôme Benoit --- diff --git a/ROOT/exo7/META-INF/context.xml b/ROOT/exo7/META-INF/context.xml new file mode 100644 index 0000000..00e2ff6 --- /dev/null +++ b/ROOT/exo7/META-INF/context.xml @@ -0,0 +1,2 @@ + diff --git a/ROOT/exo7/form.jsp b/ROOT/exo7/form.jsp new file mode 100644 index 0000000..9b620a8 --- /dev/null +++ b/ROOT/exo7/form.jsp @@ -0,0 +1,13 @@ + + + +
+ First name:
+
+ Last name:
+

+ +
+ + + diff --git a/ROOT/exo7/nextpage.jsp b/ROOT/exo7/nextpage.jsp new file mode 100644 index 0000000..8627414 --- /dev/null +++ b/ROOT/exo7/nextpage.jsp @@ -0,0 +1,5 @@ + + + Bonjour <%= session.getAttribute("theName") %> + + diff --git a/ROOT/exo7/savename.jsp b/ROOT/exo7/savename.jsp new file mode 100644 index 0000000..b790925 --- /dev/null +++ b/ROOT/exo7/savename.jsp @@ -0,0 +1,11 @@ +<% +String firstname = request.getParameter("firstname"); +String lastname = request.getParameter("lastname"); +session.setAttribute("theName", firstname + " " + lastname); +%> + + + + Continue + +