| Author |
external entity problem
|
Rishi Yagnik
Ranch Hand
Joined: Jan 04, 2001
Posts: 84
|
|
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)
|
 |
Juanjo Bazan
Ranch Hand
Joined: Feb 04, 2002
Posts: 231
|
|
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
|
 |
 |
|
|
subject: external entity problem
|
|
|