You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2002/08/09 17:32:50 UTC

Re: Taglib packaging of struts.jar!META-INF/tlds/*.tld not spec-compl iant?

Hi David,

Putting multiple TLDs in the META-INF/tlds subdirectory is a JSP 1.2
thing, which won't be recognized by a JSP 1.1 container.  For the upcoming
Struts 1.1-beta2 release, we're still doing that (for the convenience of
those running on 1.2 containers), but are *not* including a
META-INF/taglib.tld file -- JSP 1.1 users will need to package the TLDs
separately in the WEB-INF subdirectory, and declare them in web.xml (as
the struts-example webapp does).

Craig

On Fri, 9 Aug 2002, Bullock, David (EPA) wrote:

> Date: Fri, 9 Aug 2002 16:28:10 +0930
> From: "Bullock, David (EPA)" <Bu...@saugov.sa.gov.au>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: "'struts-user@jakarta.apache.org'" <st...@jakarta.apache.org>
> Subject: Taglib packaging of struts.jar!META-INF/tlds/*.tld not
>     spec-compl iant?
>
> Howdy folks.
>
> I'm a build-engineer for building a JSP/struts project.
>
> As near as I can tell, the JSP 1.1 spec specifies that when you package
> a taglib in a jar file, you can expect:
>
>   Packaged Tag Libraries
>   JSP page authoring tools are required to accept a Tag Library that is
> packaged as a JAR file.
>   When packaged so the JAR file must have a tag library descriptor file
> named META-INF/
>   taglib.tld.
>
>   (source:  ftp://ftp.java.sun.com/pub/jsp/11final-87721/jsp1_1-spec.pdf ,
> section 5.2.1)
>
> Now, the modularization of Struts taglibs has taken the approach of putting
> multiple
> .tld files in META-INF/tlds/
>
> So I expect therefore that a reference in a web.xml:
> <taglib>
>     <taglib-uri>acmetags</taglib-uri>
>     <taglib-location>/WEB-INF/lib/struts.jar</taglib-location>
> </taglib>
>
> Won't find any of:
>
> META-INF/tlds/struts-bean.tld
> META-INF/tlds/struts-form.tld
> META-INF/tlds/struts-html.tld
> META-INF/tlds/struts-logic.tld
> META-INF/tlds/struts-template.tld
>
> although it will find the 'deprecated' META-INF/taglib.tld
>
> So what's the story?  Is there some corner of the spec I have
> missed, or will I have to extract the TLD's from struts.jar to my
> preferred location under WEB-INF as part of the build?
>
> thanks,
> David.
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>