I have this code and I have read somewhere nowadays scriplets are highly deprecated and discouraged. I'd like to use JSTL for the following code but I have some issues to understand how JSTL and EL work. Do you have any suggestion, guides, how-to?
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.*, ejb.EsempioEntity" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
List<EsempioEntity> list = (List<EsempioEntity>)request.getAttribute("list");
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View</title>
</head>
<body>
<%
if(list!=null)
{
for(EsempioEntity ee:list)
{
out.print("<p>"+ee.toString()+"</p>");
}
}
else
{
out.print("<p>Nessun dato!</p>");
}
%>
</body>
</html>