<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="tchat-container">
	<h2 class="block">Tchat</h2>
	<div class="messages-container" id="Messages" style="height: 60vh;">
		<c:forEach var="message" items="${listeMessages}">
		    <p>
		        ${message.login} : ${message.contenu}
		    </p>
		</c:forEach>
	</div>
  	<div class="block">
	  	<input
		  class="input is-primary is-small"
		  type="text"
		  id="tchat"
		  placeholder="Tchatez ici"
		  name="contenu">
	</div>
</div>