Skip to content

Instantly share code, notes, and snippets.

@alexandreaquiles
Last active August 29, 2015 14:16
Show Gist options
  • Save alexandreaquiles/5876e778de4df9c6c550 to your computer and use it in GitHub Desktop.
Save alexandreaquiles/5876e778de4df9c6c550 to your computer and use it in GitHub Desktop.
Para definir uma URI para o tagfile criado no cap. 8 do FJ-21, é preciso criar um arquivo /WEB-INF/caelum.tld com o conteúdo abaixo.
<%-- inicio --%>
<%@taglib uri="http://caelum.com.br/fj21/tags" prefix="caelum" %>
<%-- fim --%>
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">
<tlib-version>1.0</tlib-version>
<short-name>caelum</short-name>
<uri>http://caelum.com.br/fj21/tags</uri>
<tag-file>
<name>campoData</name>
<path>/WEB-INF/tags/campoData.tag</path>
</tag-file>
</taglib>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment