update
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
Author : steve.maingana
|
||||
--%>
|
||||
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -11,17 +12,11 @@
|
||||
<body>
|
||||
<%@include file="jspf/menu.jspf" %>
|
||||
<h1>Bienvenue sur la nouvelle application de gestion des clients écrite avec JakartaEE</h1>
|
||||
<%
|
||||
boolean login = (boolean) request.getAttribute("login");
|
||||
if (login) {
|
||||
%>
|
||||
<p>Bienvenue ${pseudo}</p>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<%@include file="jspf/login.jspf" %>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<c:choose>
|
||||
<c:when test="${!login}"><%@ include file="jspf/login.jspf" %></c:when>
|
||||
<c:when test="${login}">
|
||||
<p>Bienvenue ${param.pseudo} !</p>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user