Originally posted by sandeep rane:
hi
i am new to taglib in jsp.
I have written
1)counter.tld
2)counter.java
3)counter.jsp
I am using weblogic5.1 version .
I placed counter.tld file in c:\weblogic\myserver\public_html\web-inf directory and
I placed jsp file in public_html
i placed counter.class file in servletclasses directory.But it is giving error that counter.class is bad file .please remove it or keep it in correct directory.
please help me for the correct location of all the files.
Originally posted by sandeep rane:
hi
i am new to taglib in jsp.
I have written
1)counter.tld
2)counter.java
3)counter.jsp
I am using weblogic5.1 version .
I placed counter.tld file in c:\weblogic\myserver\public_html\web-inf directory and
I placed jsp file in public_html
i placed counter.class file in servletclasses directory.But it is giving error that counter.class is bad file .please remove it or keep it in correct directory.
please help me for the correct location of all the files.
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.
IP: Logged
Originally posted by sowmya vasisht:
solution is to give the complete path of tld file
Originally posted by Barry Gaunt:
Why do you want to read from an Output stream?