Where is your web.xml file - we need to see this to see if you've mapped
your taglib correctly?
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sajeev Anand
> Sent: 14 September 2000 00:11
> To: [EMAIL PROTECTED]
> Subject: Re: JSP tags
>
>
> Sure, only that it involves the code, but this is only a Hello World
> program.
>
> My Jsp:hello.jsp
> ----------------
> <%@ taglib prefix="ct" uri="hello.tld" %>
> Message: <ct:hello/>
>
> My tag class: HelloTag.java
> ---------------------------
> import java.io.*;
> import javax.servlet.jsp.*;
> import javax.servlet.jsp.tagext.*;
>
> public class HelloTag extends TagSupport {
> public int doStartTag() throws JspException
> {
> try {
> pageContext.getOut().println("hello, world");
> } catch (IOException e) {
> }
>
> return SKIP_BODY;
> }
> }
>
> My tld:hello.tld
> ----------------
> <?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">
> <taglib>
> <tlibversion>1.0</tlibversion>
> <jspversion>1.1</jspversion>
> <shortname>mt</shortname>
> <uri></uri>
> <info>My first Tag library</info>
>
> <tag>
> <name>hello</name>
> <tagClass>HelloTag</tagClass>
> </tag>
> </taglib>
>
> I am using tomcat 3.1. The jsp and tld files were put in the public_html
> folder and the class file in lib/classes of the j2sdkee server. I was
> earlier using Netscape Server with JRun and it is taking some time getting
> used to Tomcat. There is also some concept of deploying in a jar
> file which
> I could not understand. How can I make this program work?
>
> Any help deeply appreciated.
>
> Thanks
>
> Sajeev
>
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Raj S
> Sent: Wednesday, September 13, 2000 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP tags
>
>
> Can you be more specific about the problem you are facing?
>
>
> >Hello
> >
> >I am new to JSP development and am now working on tag libraries. I have
> >been
> >working on the basic 'Hello World' program for the last three days and
> >still
> >it is not working. I really can't figure out what is wrong. Is
> there anyone
> >who can help me?
> >
> >Thanks
> >
> >Sajeev
> >
> >=================================================================
> ==========
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets