|
The following is the tag lib descriptor file for the reverse tag.
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>Visualbuilder</shortname> <info>Visual builder Tag library</info> <tag> <name>stringreverse</name> <tagclass>com.visualbuilder.taglibrary.ReverseTag </tagclass> <info> This is a simple tag which will reverse the text. </info> <!-- Optional attributes --> </tag> </taglib>
CustomTag.jsp file
<%@ taglib uri="/WEB-INF/reverse.tld" prefix="reverse" %>
<html> <head> <title>Your Custom Tag library</title> </head> <body bgcolor="#ffffff"> <hr /> <reverse:stringreverse> Visual Builder </reverse:stringreverse> <hr /> </body> </html>
Output:-
|