jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Delisle <pierre.deli...@sun.com>
Subject Re: Ant Taglib - first draft
Date Wed, 03 Jan 2001 19:37:45 GMT

Great stuff!

One quick comment about the TLD. 

If the <uri> tag is defined as follows in the TLD:


then under a JSP 1.2 compliant container (such as tomcat-4.0), all a 
user has to do to use the tag library is to:
        1. copy the jar file into the /WEB-INF/lib subdirectory of 
           the web application. 
        2. add the taglib directive at the top of each page using it:
            <%@ taglib uri="http://jakarta.apache.org/taglibs/ant-tags-1.0" 
                prefix="foo" %>
There is no need to 
        3. Copy the tag library descriptor file to the /WEB-INF subdirectory 
           of the web application. 
        4. Add a <taglib> element to the web application deployment 
           descriptor in /WEB-INF/web.xml 

This change does not affect usage under a JSP1.1 container, and makes
life easier under JSP1.2. (see section 7.3.3 of the JSP 1.2 PFD for
more details on "implicit map in tag libraries" which was added in 1.2.)

Thanks again!

    -- Pierre

[Agree that I can simply use the following taglib directive
   <%@ taglib uri="WEB-INF/lib/ant-tags.jar" prefix="foo" %>
 and all works fine, but it is preferable to refer to these
 libraries using their public URI that uniquely identifies a specific
 version of the tag library]

"Scott M. Stirling" wrote:
> Hi,
> Here's first cut of an Ant tasks taglib.  It's small, so please don't
> expect too much.  It's more of a proof of concept really.
> The tasks that I have fully implemented as tags so far are:
> echo, fail, gzip, gunzip, mkdir and touch.
> I am attaching the source  (ant-tags.tar.gz) in typical Jakarta taglib
> layout.
> If you build and deploy on Tomcat, just copy the built doc and examples
> war files to the webapps
> dir.  By default the two apps will serve up at:
> Read the overview of the ant-tags.html doc (the default doc if you build
> and deploy the ant-tags-doc app) for a description of the taglib's
> purpose and goals, and to see the documentation described below.
> I spent a considerable amount of time on the documentation process.
> That deserves another email.  Basically, following Craig McClanahan's
> idea of generating the TLD and the main HTML doc from a single XML file,
> I have perfected the production of Jakarta Taglib docs like Glenn has
> for each tag library on the Web site.  I've even added some simple
> syntax highlighting to the JSP examples in the generated HTML, which
> you'll see if you deploy and browse to the ant-tags-doc app.  More on
> this subject, with a template XML file that everyone can discuss, modify
> and use to generate their own docs and TLD, hopefully  tomorrow.
> Best regards,
> Scott Stirling
> West Newton, MA
>   ----------------------------------------------------------------------------------------------------
>                       Name: ant-tags.tar.gz
>    ant-tags.tar.gz    Type: Unix Tape Archive (application/x-tar)
>                   Encoding: base64

View raw message