• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

external entity not found jsp

 
Rishi Yagnik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rishi,
Try keeping studykit.tld in the WEB-INF directory where your web.xml resides.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic