You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by sol myr <so...@yahoo.com> on 2005/08/03 07:21:38 UTC

Can tomcat 4 run taglibs with "function-signature" (static methods) ?

Hi,

I've created a taglib (.tld) with < function > elements, mapping to static methods.
This works fine on tomcat 5. However, I've been unable to run it on tomcat 4.
Could anyone please tell if it's possible at all to run this on tomcat 4 ?

Technically, the problem seems to be the schema/DTD of the ".tld" file.
On tomcat 5 it's the new schema, that allows elements such as <function> and <function-signature>. The schema declaration:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
version="2.0">

However, on tomcat 4 I've only managed to use the old DTD, and I suspect it doesn't support "<function>" tags.... is there a newer DTD ?
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

Thanks :)


		
---------------------------------
 Start your day with Yahoo! - make it your home page