
August 1st, 2000, 04:03 PM
|
|
Junior Member
|
|
Join Date: Aug 2000
Location: charlotte,nc,usa
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi
I'm creating a very simple custom tag,and i'm getting this error:
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open taglibrary csajsp1-taglib.tld : D:jakarta-tomcatwebappsexamplesjspcsajsp1-taglib.tld (The system cannot find the file specified)
Here is the tag handler file:
import javax.sevlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
public class example1 extends TagSupport
{
public int doStarTag()
{
try
{
JspWriter out = pageContext.getOut();
out.print("Good morning !!!!");
}
catch(IOException e)
{
System.out.println("Error .....");
//System.out.println( e);
}
return (SKIP_BODY);
}
}
I'm putting that file in:
d:jakarta-tomcatwebapps/root/web-inf/classes
Also here is the tag library file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<!-- a tag library descriptor -->
<taglib>
<!-- after this the default space is
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
-->
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>csajsp1</shortname>
<uri></uri>
<info>
A simple tab library for the examples
</info>
<tag>
<name>test</name>
<tagclass>example</tagclass>
<info> Display JSP sources </info>
</tag>
<!-- A simple Tag -->
</taglib>
I'm putting it in :
d:jakarta-tomcatwebappsexamplesweb-inf/jsp
here is the jsp file:
<HTML>
<HEAD>
<%@ taglib uri="csajsp1-taglib.tld" prefix="csajsp1" %>
<TITLE><csajsp1:test /></TITLE>
</HEAD>
</HTML>
i'm putting it in:
d:jakarta-tomcatwebappsexamplesjsp
i will appreciate your help.
thanks alot
|