
July 4th, 2002, 03:26 AM
|
|
Junior Member
|
|
Join Date: Jun 2002
Location: london
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
errors with Custom Tags
can anyone tell me why first:goodbye wont show up on my screen??!! :-(
the jsp file
Code:
<%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="first" %>
<HTML>
<HEAD>
<TITLE>Hello Tag</TITLE>
</HEAD>
<BODY bgcolor="#ffffcc">
<B>My first tag prints</B>:
<first:hello/>
<B>My second tag prints</B>:
<first:goodbye/>
</BODY>
</HTML>
the tld file
Code:
<?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>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>first</shortname>
<uri></uri>
<info>A simple tab library for the examples</info>
<tag>
<name>hello</name>
<tagclass>tag.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Say Hi</info>
</tag>
<tag>
<name>goodbye</name>
<tagclass>tag.ByeTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Say Bye</info>
</tag>
</taglib>
thanks in advance!!!
|