exo7: fix to the form cinematic.
[TD_webapps.git] / ROOT / exo3 / bool.jsp
1 <%@ page import="java.io.*, java.util.*, javax.servlet.*" %>
2 <html>
3 <body>
4 <%
5 String statuserparam = request.getParameter("statuser");
6 boolean statuser = false;
7 if (statuserparam.equals("true")) {
8 statuser = true;
9 } else if (statuserparam.equals("false")) {
10 statuser = false;
11 } else {
12 out.print("Empty or unknown statuser page parameter");
13 }
14 if (statuser) {
15 out.print("Bienvenue");
16 } else {
17 out.print("Au revoir");
18 }
19 %>
20
21 </body>
22 </html>