<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Llistat d'items</title> </head> <body> <h1>Llistat d'items</h1> <table> <thead> <tr> <th>Image</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <% for (Item item : items) { %> <tr> <td><img src="<%= item.getImatge() %>" alt="<%= item.getNom() %>"></td> <td><%= item.getNom() %></td> <td><%= item.getDescripcio() %></td> </tr> <% } %> </tbody> </table> </body> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Llistat d'items</title> </head> <body> <h1>Llistat d'items</h1> <table> <thead> <tr> <th>Image</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <% for (Item item : items) { %> <tr> <td><img src="<%= item.getImatge() %>" alt="<%= item.getNom() %>"></td> <td><%= item.getNom() %></td> <td><%= item.getDescripcio() %></td