<!DOCTYPE html> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html lang="en"> <head> <meta charset=UTF-8"> <title>Gestion Stock</title> </head> <body> <div align="center"> <a href="/categorie/add">Ajouter</a> <table border="1"> <tr> <th>ID</th> <th>nom</th> <th>Action</th> </tr> <c:forEach items="${categories}" var="categorie"> <tr> <td>${categorie.id}</td> <td>${categorie.nom}</td> <td><a onclick="return confirm('Estes vous sure')" href="/categorie/delete?id=${categorie.id}">Supprimer</a></td> <td><a href="/categorie/edit?id=${categorie.id}">Editer</a></td> </tr> </c:forEach> </table> </div> </body> </html>