• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

jakarta-tomcat-4.0.1 taglib problem  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jsp as well as tomcat for the first time.so Can any body tell me what i am doing wrong?
When i start my D:\jakarta-tomcat-4.0.1
I get following error
Apache Tomcat/4.0.1
PARSE error at line 2 column 9
org.xml.sax.SAXParseException: Element type "taglib" must be declared.
サービス Tomcat-Apache を起動します
Apache Tomcat/4.0.1
My file structure is this
JSP FILE
---------
D:\jakarta-tomcat-4.0.1\webapps\ROOT\top.jsp
D:\jakarta-tomcat-4.0.1\webapps\ROOT\template.jsp
TLD FILE
---------
C:\jakarta-tomcat-4.0.1\webapps\exp\WEB-INF\tlds\ab.tld
<?xml version="1.0" encoding="Shift_JIS"?>
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>quote</shortname>
<info>-
evs Tag Library
Copyright (c) evs.co.jp
Version1.0 by M.Kato
</info>
<tag>
<name>formatsetloop</name>
<tagclass>jm.FormatSetLoopTag</tagclass>
<teiclass>jm.FormatSetLoopExtraInfo</teiclass>
<bodycontent>tagdependent</bodycontent>
<attribute>
<name>formatset</name>
<rtexprvalue>true</rtexprvalue>
<required>true</required>
</attribute>
<attribute>
<name>formatsetname</name>
<required>true</required>
</attribute>
<attribute>
<name>start</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>input</name>
<tagclass>jm.Input</tagclass>
<bodycontent>empty</bodycontent>
<attribute><name>align</name><required>false</required></attribute>
<attribute><name>onclick</name><required>false</required></attribute>
<attribute><name>onblur</name><required>false</required></attribute>
<attribute><name>onfocus</name><required>false</required></attribute>
<attribute><name>onselect</name><required>false</required></attribute>
<attribute><name>onchange</name><required>false</required></attribute>
<attribute><name>value</name><required>false</required></attribute>
<attribute><name>size</name><required>false</required></attribute>
<attribute><name>name</name><required>true</required></attribute>
<attribute><name>tabindex</name><required>false</required></attribute>
<attribute><name>accesskey</name><required>false</required></attribute>
<attribute><name>type</name><required>true</required></attribute>
<attribute><name>fieldname</name><required>false</required></attribute>
<attribute><name>valuefield</name><required>false</required></attribute>
<attribute><name>showfield</name><required>false</required></attribute>
<attribute><name>selectedvalue</name><required>false</required><rtexprvalue>true</rtexprvalue></attribute>
<attribute><name>table</name><required>false</required></attribute>
<attribute><name>where</name><required>false</required></attribute>
<attribute><name>multiple</name><required>false</required></attribute>
<attribute><name>map</name><required>false</required><rtexprvalue>true</rtexprvalue></attribute>
<attribute><name>vertical</name><required>false</required></attribute>
<attribute><name>multiselect</name><required>false</required><rtexprvalue>true</rtexprvalue></attribute>
</tag>
<tag>
<name>authority</name>
<tagclass>jm.Authority</tagclass>
<bodycontent>tagdependent</bodycontent>
<attribute>
<name>max</name>
<required>false</required>
</attribute>
<attribute>
<name>equal</name>
<required>false</required>
</attribute>
<attribute>
<name>min</name>
<required>false</required>
</attribute>
</tag>
</taglib>

WEB.XML FILE
------------
C:\jakarta-tomcat-4.0.1\webapps\exp\WEB-INF\web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<taglib>
<taglib-uri>/ab.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/ab.tld</taglib-location>
</taglib>
</web-app>

JAVA_FILES
-----------
All Java class files I have kept at .
package jm
C:\jakarta-tomcat-4.0.1\webapps\exp\WEB-INF\classes\jm

so can any body please tell me what I am doing wrong???
Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!