tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: where to put tag libraries
Date Thu, 14 Jun 2001 18:31:06 GMT
No.

I understand the original question was about making the taglibs
available to all the web apps, not just one, right?

If you put the jar under a WEB-INF/lib then it will be available only
to the web app to which that WEB-INF belong.

As far as I can tell, to share the jar with all the applications you should
put it under $TOMCAT_HOME/lib.

The tld file itself seems to have to be somewere under the application's
directory (the parent of WEB-INF) since the <taglib-location> in the
web.xml interprets it in relation to that root of the web app.

See the JSP 1.1 spec sections 5.2.2 and 5.3.1 (and around).

Cheers,

--Amos

-----Original Message-----
From: Peter Choe [mailto:choepete@mindspring.com]
Sent: Thursday, June 14, 2001 5:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: where to put tag libraries


so, something like:
$TOMCAT_HOME/WEB-INF/lib
or
$TOMCAT_HOME/webapps/foobar/WEB_INF/lib

if i just put the class files in the $TOMCAT_HOME/lib, i just need to
alter the web.xml and put the taglibs in the
$TOMCAT_HOME/webapps/foobar/WEB-INF?

each webapps needs to have the taglib.tld in its WEB-INF directory?

peter choe

Dmitri Colebatch wrote:
> 
> Amos Shapira wrote:
> > The class files themself are just like any other library - under
> > Tomcat's lib or anywere in the standard JAva classpath.
> a more appropriate place might be considered to be WEB-INF/lib - that
> way they will not affect anything outside the context they are deployed
> for.
> 
> cheers
> dim
> 
> >
> > -----Original Message-----
> > From: Peter Choe [mailto:choepete@mindspring.com]
> > Sent: Thursday, June 14, 2001 3:00 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: where to put tag libraries
> >
> > where can i put a taglib jar file so that all the applications can use
> > it?
> >
> > peter choe

Mime
View raw message