(Quick Reference)

6.3.6 Using JSP Tag Libraries - Reference Documentation

Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith

Version: null

6.3.6 Using JSP Tag Libraries

In addition to the simplified tag library mechanism provided by GSP, you can also use JSP tags from GSP. To do so simply declare the JSP to use with the taglib directive:

En adicion al mecanismo simplificado de librerias de etiquetas proveido por GSP, usted tambien puede usar etiquetas de JSP desde GSP. Para hacerlo simplemente declare el JSP que usara con la directiva taglib:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

Then you can use it like any other tag:

Entonces podra usarla como cualquier otra etiqueta:

<fmt:formatNumber value="${10}" pattern=".00"/>

With the added bonus that you can invoke JSP tags like methods:

Con el extra aƱadido que puede invocar etiquetas de JSP como metodos:

${fmt.formatNumber(value:10, pattern:".00")}