File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tld question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "tld question" Watch "tld question" New topic
Author

tld question

Paolo Metafune
Ranch Hand

Joined: Aug 22, 2005
Posts: 34
I red on manning book that a tld file, being a xml, must respect the order of tags.

I have this tld
***********************************+
<!DOCTYPE taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<uri>MyCustomTagKey</uri>
<tag>
<name>myCustom</name>
<tag-class>mypackage.MyCustomTag</tag-class>
<body-content>tagdependent</body-content>
</tag>
</taglib>
********************************
can you tell me why it works also if, for instance, i move the uri tag before tlib-version ?
Sergey Tyulkin
Ranch Hand

Joined: May 10, 2005
Posts: 87
I have 2 suggestions:
1) Container uses non-validating xml parser.
2) Container uses PUBLIC uri, and uses more appropriate DTD, or even schema to parse the file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tld question
 
Similar Threads
jsp tag libraries problem
Tomcat 5.028 not able load tag handler class
Tag Library Decriptor Problem
STEP-BY-STEP creating a WAR file
Problem with precompiling my JSP pages.