<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<sql:query var="subjects" dataSource="jdbc/IFPWAFCAD">
SELECT subject_id,name FROM subject
</sql:query>
<table border="1">
<!-- column headers -->
<tr>
<c:forEach var="columnName" items="${subjects.columnNames}">
<th><c:out value="${columnName}"/></th>
</c:forEach>
</tr>
<!-- column data -->
<c:forEach var="row" items="${subjects.rowsByIndex}">
<tr>
<c:forEach var="column" items="${row}">
<td><c:out value="${column}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%--
This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Página de Inicio IFPWAFCAD</title>
</head>
<body>
<h1>Bienvenido a IFPWAFCAD, el ex internacional de los luchadores profesionales "Asociación para el Asesoramiento y Desarrollo! </h1>
<table border="0">
<thead>
<tr>
<th>IFPWAFCAD ofrece asesoramiento de expertos en una amplia gama de campos. </th>
</tr>
</thead>
<tbody>
<tr>
<td>Para ver los detalles de contacto de un ex IFPWAFCAD certificados
luchador profesional en su área, seleccione un tema a continuación:</td>
</tr>
<tr>
<td><form action="response.jsp">
<strong> Seleccione un tema: </ strong>
<select name="subject_id">
<option></option>
<option></option>
</select>
<input type="submit" value="submit" />
</form></td>
</tr>
</tbody>
</table>
</body>
</html>
</f:view>