tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Ikeda <anthony.ik...@proxima-tech.com>
Subject RE: error using taglib
Date Mon, 24 Jul 2000 04:18:11 GMT
Cheers, I've been using  the 'Core Servlets and JSP' by Marty Hall which
seems to be incorrect!
:)

Thanks,
Anthony Ikeda
Proxima Technology

> -----Original Message-----
> From: Dave Smith [mailto:Smith@ali.com.au]
> Sent: Monday, July 24, 2000 14:06 PM
> To: 'taglibs-user@jakarta.apache.org'
> Subject: RE: error using taglib
> 
> 
> The DTD
> http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
> 
> says it should be uri not urn
> 
> Dave Smith
> Senior Team Leader
> Aristocrat Technologies Australia Pty Ltd
> 
> mailto:smith@ali.com.au
> 
> 
> -----Original Message-----
> From: Anthony Ikeda [mailto:anthony.ikeda@proxima-tech.com]
> Sent: Monday, 24 July 2000 14:11
> To: 'taglibs-user@jakarta.apache.org'
> Subject: RE: error using taglib
> 
> 
> I have a similar problem except it happens inside the TLD 
> document. The
> error that returns is with the <urn> and <bodycontent> tags.
> 
> Have these been made obsolete or deprecated? I have used the 
> same syntax as
> have been used in numerous examples but still it won't work 
> unless I remove
> these tags. Functionality doesn't seem to be affected but 
> should they affect
> it in any way?
> 
> Here is my code:
> <taglib>
> 	<tlibversion>1.0</tlibversion>
> 	<jspversion>1.1</jspversion>
> 	<shortname>testtags</shortname>
>       <urn></urn>
> 	<info>
> 		Tag library to improve client configurability
> 		of the centauri product.
> 	</info>
> 	
> 	<tag>
> 		<name>sample</name>
> 		<tagclass>testTags.tags.taglib1</tagclass>
> 		<info>Very basic first test run of a tag for
> centauri.</info>
> 		<bodycontent>EMPTY</bodycontent>
> 	</tag>
> 	<tag>
> 		<name>documentHead</name>
> 		<tagclass>testTags.tags.taglib2</tagclass>
>             <info>parameter based version of a custom tag</info>
> 		<bodycontent>JSP</bodycontent>
> 		<attribute>
> 			<name>type</name>
> 			<required>false</required>
> 		</attribute>
> 		<attribute>
> 			<name>logo</name>
> 			<required>false</required>
> 		</attribute>
> 	</tag>
> 	
> </taglib>
> 
> The error I get is (if I remove the urn tag I get the same 
> error with the
> bodycontent tag):
> org.apache.jasper.JasperException: Unable to open taglibrary 
> taglib1.tld :
> Parse Error in the tag library descriptor: Element "taglib" 
> does not allow
> "urn" here.
> 	at
> org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> ve(JspParseEve
> ntListener.java, Compiled Code)
> 	at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(
> DelegatingList
> ener.java, Compiled Code)
> 	at 
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
> Compiled Code)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
> Code)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
> Code)
> 	at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
> 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
> Compiled Code)
> 	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java,
> Compiled Code)
> 	at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java, Compiled Code)
> 	at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va, Compiled Code)
> 	at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> 	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
> Compiled Code)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java,
> Compiled Code)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.j
> ava, Compiled
> Code)
> 	at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java, Compiled Code)
> 	at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java,
> Compiled Code)
> 	at java.lang.Thread.run(Thread.java, Compiled Code)
> 
> 
> Cheers,
> Anthony Ikeda
> Proxima Technology
> 

Mime
View raw message