You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Paeth <ap...@fortdearborn.com> on 2000/06/16 16:37:16 UTC
body content not allowed
After a painful creating/configuration of my first tag library I've come up
with a new problem...
I have the following tag library
<?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">
<!-- a tag library descriptor -->
<taglib>
<!-- after this the default space is
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
-->
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>page_test</shortname>
<uri></uri>
<info>
tag library for testing
</info>
<tag>
<name>ptest</name>
<tagclass>page_test</tagclass>
<info>test tag </info>
<bodycontent>JSP</bodycontent>
</tag>
</taglib>
whenever I try to run the page with tags <prefix:ptest> some content
</prefix:ptest> (prefix being the assigned prefix) I get the following error
org.apache.jasper.JasperException: Unable to open taglibrary ads-taglib.tld
: Parse Error in the tag library descriptor: Element "tag" does not allow
"bodycontent" here.
I've read through a few sample applications, searched the web, and it looks
like this should work. Does anyone have any idea what could be wrong?
Adam Paeth / apaeth@fortdearborn.com
Advanced Technology Group
Fort Dearborn Company
1530 Morse Ave.
Elk Grove Village, IL 60007
847-427-5494 voice
847-357-8726 fax