aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes external entity not found jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "external entity not found jsp" Watch "external entity not found jsp" New topic
Author

external entity not found jsp

Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
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)
g madhava
Ranch Hand

Joined: Sep 14, 2001
Posts: 85
Rishi,
Try keeping studykit.tld in the WEB-INF directory where your web.xml resides.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: external entity not found jsp