<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.util.*,javabeans.*" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <center>
    <h1>Listado de Llamadas</h1> 
    <table border="1" width="60%">
        <th>Teléfono destino</th>
        <th>Duración (segundos)</th>
        <th>Tarifa</th>
        <th>Coste</th>
        <th>Fecha</th>
        <logic:iterate id="llamada" name="llamadas" scope="request" type="javabeans.LlamadaBean">            
            <tr>
                <td><bean:write name="llamada" property="destino"/></td>
                <td><bean:write name="llamada" property="duracion"/></td>
                <td><bean:write name="llamada" property="tarifa"/></td>
                <td><bean:write name="llamada" property="coste" format="0.00"/></td>
                <td><bean:write name="llamada" property="fecha"/></td>
            </tr>          
        </logic:iterate>
        
    </table>
    </center>
    </body>
</html>
