Forums Register Login

external entity problem

+Pie Number of slices to send: Send
7601
posted November 18, 2002 04:07 AM
--------------------------------------------------------------------------------
Hi
I am trying to run jsp tag libraries example i am getting followinf errors help required immed
this is my web.xml
<webapps>
<taglib>
<taglib-uri>/Hello</taglib-uri>
<taglib-location>studyKit.tld</taglib-location>
</taglib>
</webapps>
This is my studyKit.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>
<!-- INFO ABOUT THIS LIBRARY -->
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>Hello</short-name>
<!-- URI FOR IMPLICIT MAPPING -->
<urn></urn>
<!-- GREET TAG -->
<tag>
<name>greet</name>
<tag-class>wcd.GreetTag</tag-class>
<body-content>empty</body-content>
<description>Prints Hello user! wherever it occurs</description>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
and my jsp is as follows :
<html>
<body>
<%@ taglib uri="studyKit.tld" prefix="hello"%>
<H1><hello:greet/></H1>
</body>
</html>
my studyKit.tld is lying where my jsp pages are there but still i don't understand why is it giving me following errors :
"Greeting.jsp": org.apache.jasper.JasperException: Parse Error in the tag library descriptor: External entity not found: "http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd".
thanks in advance
Rishi(SCJP)
+Pie Number of slices to send: Send
The URL you provide in your DOCTYPE tag is incorrect, It seems you want this:
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
Anyway, you can get the correct URL for different J2 DTDs here:
http://java.sun.com/dtd/
HTH
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 928 times.
Similar Threads
external entity not found jsp
jsp tag libraries problem
Pass expression value to custom tag class?
facelets and custom tags
custom tags & tag handlers REVISITED
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:18:38.