Hi there, this topic is not new but so far I don't seem to get it working.
This is my .tld file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD
JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>templateTLD</short-name>
<uri>/tlds</uri>
<display-name>templateTLD</display-name>
<description>Template Tags</description>
<tag>
<name>insert</name>
<tagclass>com.mydomain.view.template.tags.InsertTag</tagclass>
<body-content>JSP</body-content>
<small-icon></small-icon>
<large-icon></large-icon>
<description>An insertion tag</description>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>
String</type>
</attribute>
<attribute>
<name>template</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>String</type>
</attribute>
</tag>
</taglib>
AND here is JSP where I'm using this library
<%@ taglib uri="/templateTLD" prefix="template" %>
<template:insert template="/templates/sidedTemplate.jsp">
�
</template:insert>
There is an entry into web.xml reading :
<taglib>
<taglib-uri>/templateTLD</taglib-uri>
<taglib-location>/WEB-INF/tlds/barSidedTemplate.tld</taglib-location>
</taglib>
When invoking the JSP file, I get the following error:
Unable to load class com.mydomain.view.template.tags.InsertTag
barSidedTemplate.tld is sitting @ WEB-INF/tlds
InsertTag is under WEB-INF/classes/com/mydomain/servlets/view/template/tags
This is the package name: package com.mydomain.view.template.tags;
I am using JRun.
Any suggestions? Thanks in advance.
[ May 30, 2002: Message edited by: Erick Martinez ]