• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp tag extension

 
Rupali Desai
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
I am trying to implement a simple jsp tag extension.However I am receiving this error
org.apache.jasper.JasperException: Unable to open taglibrary /hello : Parse Error in the tag library descriptor: XML declaration may only begin entities.

The tld looks like this
------

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>examples</shortname>
<info>Simple example.</info>
<tag>
<name>hello</name>
<tagclass>tagext.HelloTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Examples</info>
</tag>
</taglib>
----
Could anyone guide me as to the prolem with the tld.
Thanks
Rup
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!