Hi.. tried writing the app but came up with errors. Here is what i did.
My
tomcat web apps directory contains a folder TagsTest. This parent folder contains 2 files. 1)index.jsp and WEB-INF.
WEB-INF contains the following files.
1)classes folder ===> contains TemperatureTag.class
2)web.xml
3)temperature.tld
Heres contents of TemperatureTag file
==========================================================================
=========================================================================
temperature.tld has the following entries
[code]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD
JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlibversion>0.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>message</shortname>
<tag>
<name>temperature</name>
<tagclass>TemperatureTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>celcius</name>
<required>true</required>
</attribute>
</tag>
</taglib>
[code]
=========================================================================
When i run the app it gives an error cannot resolve syymbol TemperatureTag. What ami doing wrong.
[ June 29, 2008: Message edited by: Sajjad Dar ]