What about:

public class Hello extends TagSupport {
        public int doStartTag() {
                pageContext.getOut().print("Hello World");
        }
}

I'll add it to the examples.

        - eduard/o

> Date:    Thu, 14 Oct 1999 17:26:30 -0400
> From:    Rick Gibbs <[EMAIL PROTECTED]>
> Subject: Simple JSP Tag
>
> I have just started using JSP 1.1 and had a question about how to impelment
> a simple tag.  Suppose I had the following tag:
>     <test:hello></test:hello>
> and I wanted it to be replaced with "Hello World" during execution.  I have
> looked through the examples that come with the spec but none of them show
> how to use the tags as a simple "Template Mechanism".
>
> Has anybody done this yet?
>
> Thanks
>
>     Rick

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to