Commit da4c16ae authored by Lefebvre michael's avatar Lefebvre michael

JSP TP

parent acf73e89
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
</web-app>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=pages/login.jsp"/>
</head>
</html>
<%--
Created by IntelliJ IDEA.
User: michael
Date: 19/02/2020
Time: 16:07
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="test/html; charset=ISO-8859-1">
<title>Check Login</title>
</head>
<body>
<jsp:useBean id="login" class="metier.Login" scope="page">
<jsp:setProperty name="login" property="*"/>
</jsp:useBean>
vous etes : <%= (login.isConnu()?"connu":"inconnu")%>
<br/>
<!--langage d'expression : jstl (poly)-->
vous etes : ${(login.connu?"connu":"inconnu")}
</body>
</html>
<%--
Created by IntelliJ IDEA.
User: michael
Date: 19/02/2020
Time: 16:04
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="test/html; charset=ISO-8859-1"
<title>Login</title>
</head>
<body>
<form method="POST" action="checkLogin.jsp">
Nom :
<input type="text" name="nom">
<br/>
Password :
<input type="text" name="password">
<br/>
<input type="submit" name="login" value="login">
</form>
</body>
</html>
......@@ -2,7 +2,7 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="Refresh" content=""0; URL="pages/login.jsp"/>
<meta http-equiv="Refresh" content="0; URL=pages/login.jsp"/>
</head>
</html>
......@@ -8,9 +8,19 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="test/html; charset=ISO-8859-1">
<title>Check Login</title>
</head>
<body>
<jsp:useBean id="login" class="metier.Login" scope="page">
<jsp:setProperty name="login" property="*"/>
</jsp:useBean>
vous etes : <%= (login.isConnu()?"connu":"inconnu")%>
<br/>
<!--langage d'expression : jstl (poly)-->
vous etes : ${(login.connu?"connu":"inconnu")}
</body>
</html>
......@@ -8,9 +8,20 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="test/html; charset=ISO-8859-1"
<title>Login</title>
</head>
<body>
<body>
<form method="POST" action="checkLogin.jsp">
Nom :
<input type="text" name="nom">
<br/>
Password :
<input type="text" name="password">
<br/>
<input type="submit" name="login" value="login">
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment