Introducción a la JSTL

De WikiEducator
Saltar a: navegación, buscar



Icon activity.jpg

Actividad

Objetivos

  • Utilizar JSTL en la aplicación

Tareas

  1. Instalación de JSTL
  2. Introducción a JSTL
  3. Etiquetas Básicas JSTL
  4. Modificar MostrarLibro.jsp
  5. Modificar FormularioInsertarLibro.jsp
  6. Modificar FormularioEditarLibro.jsp

Guión

  • Arquitectura java, págs. 132-137
Icon present.gif






Icon present.gif
Tip: Instalación


  1. Descarga jstl.jar de http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar
  2. Colócalo en WEB-INF/lib
  3. Añade en tu jsp la línea
 <%@  taglib  prefix="c"   uri="http://java.sun.com/jsp/jstl/core"  %>
  1. Otros tags:
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>