Originally posted by JiaPei Jen:
I am using the Weblogic 5.1.0 to try out the Tag Handler Class (Lisgings 14.10, 14.11, 14.12) in Marty Hall's book entitled "Core Servlets and JavaServer Pages".
After I typed: http://localhost:7001/HeadingExample.jsp
in IE browser window
I got error message:
Parsing of JSP file '/HeadingExample.jsp' failed: Could not parse deployment descriptor: org.xml.sax.SAXParseException:Could not parse taglib, starting at line 6.
probably occurred due to an error in /HeadExample.jsp line 16:
<%@ taglib uri="\Web-inf\csajsp-taglib.tld" prefix="csajsp" %>
I compiled HeadingTag.java and saved the compiled file in:
c:\weblogic\myserver\servletclasses\coreservlets\tags\HeadingTag.class
The library file csajsp-taglib.tld is in:
c:\weblogic\myserver\public_html\Web-inf\csajsp-taglib.tld
and the jsp file HeadingExample.jsp is in
c:\weblogic\myserver\public_html\HeadingExample.jsp
All three files are directly downloaded from the web www.coreservlets.com. Could anybody tell me what I did wrong and how to make this example work? Thanks a lot in advance.
Originally posted by Vishu Sharma:
[B]Hi,
I have defined a custom tag but when try to run the jsp using the same in Weblogic5.1 an exception is raised. javax.servlet.ServletException: compilation of /tag/tag1.jsp failed: weblogic.utils.ParsingException: nested IOException: java.io.IOException: cannot resolve 'MyFirst.tld' into a valid tag library
I am attaching the code of the tld as well as jsp for review. Both the jsp and the tld file are in the same directory.
TLD FILE:
Pls. help in solving the problem.
Thanx in anticipation,
Vishal
[This message has been edited by maha anna (edited April 23, 2001).][/B]