10-Nov-05 (Created: 10-Nov-05) | More in 'CS-Java'

Taglib examples

Using the tag


<html>
<head>
<%@ taglib uri="http://location/abc" prefix="pr" %>
</head>

<body>
The file is <pr:hello text="helloworld"/>
</body>


What is in the web.xml


<taglib>
	<taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
	<taglib-location>/WEB-INF/lib/taglibs-datetime.jar</taglib-location>
</taglib>

Where is it in the jar?

The tld files are expected inside the meta-inf subdirectory of the jar file.