I am working on Tag-Handlers with JSP but not sure which web.xml should be edited
Here is my SimpleTag.java which is located at:
D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes\simpletag

/* This is a taghandler class

*/
package simpletag;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;


public class SimpleTag extends javax.servlet.jsp.tagext.TagSupport
{
public int doStartTag() throws JspException
{
try
{
pageContext.getOut().print("Welcome to my Web site.");
}
catch (Exception e)
{
throw new JspTagException(e.getMessage() );
}
return SKIP_BODY;
}

}
Here is a very simple "taguser.jsp" which is located at:
D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\jsp\Whitehead\chap10

<html>
<head>
<title> Tag example</title>
</head>
<body>
<%@ taglib uri=""http://www.maran.com/taglib" %>
<myTags:simpletag.simpleTag></myTags:simpletag.simpleTag>
</body>
</html>

I have writtentag library descriptor called "taglib.tld" this is located in the following directory:
D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes\simpletag
Is this correct? the book I am using does not mention where to put my "tablib.tld"

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTDT JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>
<tlibversion>1.1</tlibversion>
<jspversion>1.1</jspversion>
<shortname>MyFirstTag</shortname>
<info>My first tag library descriptor file</info>

<tag>
<name>SimpleTag</name>
<tagclass>simpletag.SimpleTag</tagclass>
</tag>
</taglib>

The book mentions I need to add some code to a class called "web.xml"
I have done a search for this file in my Tomcat version and it found 5 copies:
located at:
(1) D:\tomcat\jakarta-tomcat-3.3.1\doc\appdev\sample\etc
(2) D:\tomcat\jakarta-tomcat-3.3.1\webapps\admin\WEB-INF
(3) D:\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\WEB-INF
(4) D:\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\doc\appdev\sample\etc
(5) D:\tomcat\jakarta-tomcat-3.3.1\webapps\examples\WEB-INF

Which one do I make the changes to????

Here is the code I will put into the file, please tell me if it is correct?
If it is not correct tell me where I have gone wrong?

<taglib>
<taglib-uri>
http://www.maran.com/taglib
<taglib-uri>
<taglib-location>
/WEB-INF/classes/simpletag/taglib.tld
</taglib-location>
</taglib>