%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.io.File,java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String bloqueParam = request.getParameter("bloque");
String bloque = (bloqueParam != null) ? bloqueParam : "1";
String basePath = application.getRealPath("/../apuntes/bloque" + bloque);
File bloqueDir = new File(basePath);
ArrayList temas = new ArrayList<>();
if (bloqueDir.exists() && bloqueDir.isDirectory()) {
for (File f : bloqueDir.listFiles()) {
if (f.getName().matches("tema[0-9]+.*\\.md")) {
temas.add(f.getName());
}
}
temas.sort(null);
}
%>
Bloque <%= bloque %> | TAI-AGE
Bloque <%= bloque %>
Temas disponibles
Volver al inicio