Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NEWBIE: JSP Taglib Problem  RSS feed

 
Nathan Johnson
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write my first Custom TagLib, however when I point my browser to the jsp file that uses the TagLib I get this error message:
: Parse Error in the tag library descriptor: External entity not found: "http://java.sun.com/dtd/web-jsptaglibrary_1.2.dtd".
and then it forces me to go online to net even with Tomcat(3.3a) running.
Here is the part of the TLD file that calls this,
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1.2.dtd">
from what I understand this required for all JSP 1.2 TLD files!
I would be most grateful if someone would kindly explain what is happening here!
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the DTD is required for each JSP 1.2 Tag-lib you write. But, you also need a server that can handle JSP 1.2. Tomcat 3.3 is for JSP 1.1. You need Tomcat 4.0.x to run JSP 1.2.
 
Nathan Johnson
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carl!
That explains that! I'll download and install Tomcat 4.0 later!
Hopefully uninstalling Tomcat 3.3a will be as easy as the installation!
Many thanks once again!
Nathan!
 
Nathan Johnson
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carl!
That worked!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!