Forums Register Login

Please Help! -- Custom JSP Tag

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
It sounds like there is some error in the taglib to me. I am not familiar with Weblogic 5.1.0 - are you sure it supports the JSP 1.1 taglibs?
Bill
+Pie Number of slices to send: Send
make the reference to tag library this way.
<%@ taglib uri="/csajsp-taglib.tld" prefix="csajsp" %>

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.


These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 736 times.
Similar Threads
Mr. Chace, Could You Take A Look At This Tag Library Problem.
Mr. Simon Brown, Could You Help With This Custome Tag Problem?
Mr. Hanna, Followed Your Advice On Custom Tag, Same Error Message
Problem with custom tags
Use Weblogic to Run Custom JSP Tag -- Please Help!!!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:25:23.