You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marten Lehmann <le...@cnm.de> on 2006/08/02 23:20:49 UTC

place to put taglib descriptors

Hello,

currently (in a 2.4 container) I'm putting mit taglib descriptors in the 
directory WEB-INF/lib. This directory is automatically in the 
application classpath.

But the WEB-INF/lib is already fairly full with different .jars so I 
would like to put the taglib descriptors in a separate directory like 
WEB-INF/tlds or so. How can I arrange this? I guess I have to extend the 
classpath somehow, but how can I do this? Is there any option in the 
web.xml?

Regards
Marten

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: place to put taglib descriptors

Posted by Lung Chan <fa...@gmail.com>.
here's the tutorial to create a tag file without the need to create a .tld
file

http://www.oracle.com/technology/pub/articles/cioroianu_tagfiles.html



On 8/5/06, Renaud Waldura <re...@waldura.com> wrote:
>
> I think the spec says they can be in WEB-INF/lib/library.jar!META-INF or
> just WEB-INF. Works for me on TC5.0 when I put the TLD file in WEB-INF.
> But
> that may be too messy for you! :)
>
>
>
> ----- Original Message -----
> From: "Lung Chan" <fa...@gmail.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Friday, August 04, 2006 2:48 PM
> Subject: Re: place to put taglib descriptors
>
>
> > Hi,
> >
> > I know that if you use tag librairie version 2, you don't need any
> > configuration tag
> > have you check that out?
> >
> > It's a tag that don't need to be compile, it's in a jspf or jspx
> extension
> > file or something like that. It's like coding jsp, but you are building
> > tags.
> >
> > I try to find something for you, but can't remember the link.
> > I think it jsp tag ver 1.2
> > It should be in the jsp ver 2 specification
> >
> > Please someone correct me, I have a blank, long time not doing webapp
> >
> >
> > On 8/4/06, Marten Lehmann <le...@cnm.de> wrote:
> >>
> >> Hi,
> >>
> >> > You could place them in the META-INF of the jar files they go with.
> >> > Otherwise, no auto-configure locations that I know of.  What's the
> >> > problem with configuring them in web.xml?
> >>
> >> it just clutters up the configuration, so for me it is more a
> cosmetical
> >> than a technical issue.
> >>
> >> Regards
> >> Marten
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: place to put taglib descriptors

Posted by Renaud Waldura <re...@waldura.com>.
I think the spec says they can be in WEB-INF/lib/library.jar!META-INF or 
just WEB-INF. Works for me on TC5.0 when I put the TLD file in WEB-INF. But 
that may be too messy for you! :)



----- Original Message ----- 
From: "Lung Chan" <fa...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, August 04, 2006 2:48 PM
Subject: Re: place to put taglib descriptors


> Hi,
>
> I know that if you use tag librairie version 2, you don't need any
> configuration tag
> have you check that out?
>
> It's a tag that don't need to be compile, it's in a jspf or jspx extension
> file or something like that. It's like coding jsp, but you are building
> tags.
>
> I try to find something for you, but can't remember the link.
> I think it jsp tag ver 1.2
> It should be in the jsp ver 2 specification
>
> Please someone correct me, I have a blank, long time not doing webapp
>
>
> On 8/4/06, Marten Lehmann <le...@cnm.de> wrote:
>>
>> Hi,
>>
>> > You could place them in the META-INF of the jar files they go with.
>> > Otherwise, no auto-configure locations that I know of.  What's the
>> > problem with configuring them in web.xml?
>>
>> it just clutters up the configuration, so for me it is more a cosmetical
>> than a technical issue.
>>
>> Regards
>> Marten
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: place to put taglib descriptors

Posted by Lung Chan <fa...@gmail.com>.
Hi,

I know that if you use tag librairie version 2, you don't need any
configuration tag
have you check that out?

It's a tag that don't need to be compile, it's in a jspf or jspx extension
file or something like that. It's like coding jsp, but you are building
tags.

I try to find something for you, but can't remember the link.
I think it jsp tag ver 1.2
It should be in the jsp ver 2 specification

Please someone correct me, I have a blank, long time not doing webapp


On 8/4/06, Marten Lehmann <le...@cnm.de> wrote:
>
> Hi,
>
> > You could place them in the META-INF of the jar files they go with.
> > Otherwise, no auto-configure locations that I know of.  What's the
> > problem with configuring them in web.xml?
>
> it just clutters up the configuration, so for me it is more a cosmetical
> than a technical issue.
>
> Regards
> Marten
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: place to put taglib descriptors

Posted by Marten Lehmann <le...@cnm.de>.
Hi,

> You could place them in the META-INF of the jar files they go with.  
> Otherwise, no auto-configure locations that I know of.  What's the 
> problem with configuring them in web.xml?

it just clutters up the configuration, so for me it is more a cosmetical 
than a technical issue.

Regards
Marten

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: place to put taglib descriptors

Posted by David Smith <dn...@cornell.edu>.
You could place them in the META-INF of the jar files they go with.  
Otherwise, no auto-configure locations that I know of.  What's the 
problem with configuring them in web.xml?

--David

Marten Lehmann wrote:

> Hello,
>
>> They can be in let's say WEB-INF/tlds and then added to web.xml in a 
>> <jsp-config> tag, one per <taglib> tag.
>
>
> but that's exactly what I don't want to do: Explicitly mention each 
> single taglib descriptor in web.xml. Isn't there a way to put them all 
> in a certain directory that is different to WEB-INF/lib?
>
> Regards
> Marten
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: place to put taglib descriptors

Posted by Marten Lehmann <le...@cnm.de>.
Hello,

> They can be in let's say 
> WEB-INF/tlds and then added to web.xml in a <jsp-config> tag, one per 
> <taglib> tag.

but that's exactly what I don't want to do: Explicitly mention each 
single taglib descriptor in web.xml. Isn't there a way to put them all 
in a certain directory that is different to WEB-INF/lib?

Regards
Marten

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: place to put taglib descriptors

Posted by David Smith <dn...@cornell.edu>.
The only way a tld should be in WEB-INF/lib is if it's in the META-INF 
of the jar containing the taglib classes.  They can be in let's say 
WEB-INF/tlds and then added to web.xml in a <jsp-config> tag, one per 
<taglib> tag.

--David


Marten Lehmann wrote:

> Hello,
>
> currently (in a 2.4 container) I'm putting mit taglib descriptors in 
> the directory WEB-INF/lib. This directory is automatically in the 
> application classpath.
>
> But the WEB-INF/lib is already fairly full with different .jars so I 
> would like to put the taglib descriptors in a separate directory like 
> WEB-INF/tlds or so. How can I arrange this? I guess I have to extend 
> the classpath somehow, but how can I do this? Is there any option in 
> the web.xml?
>
> Regards
> Marten
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org