Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2000, 04:03 PM
darine darine is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: charlotte,nc,usa
Posts: 2 darine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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



Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Internal Servlet Error with Custom tag

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap