Thanks a lot everyone for the help.

I got it working. This is what I ended up doing in case anyone's interested:

1. Make each taglib into its own Java package
2. Create a subdirectory for each one called META-INF
3. Put the TLD for each taglib into the appropriate META-INF directory
4. Rename all TLD's to "taglib.tld"
5. For each taglib, package the classes plus the META-INF directory into a
jar file
6. Put the jar file into WEB-INF/lib
7. In web.xml, map the taglib URI to point to the jar file
8. Also put the class files for the tag handlers into the tree structure
under WEB-INF/classes

That setup works for both Tomcat 3.2.3 and JRun 3.0.

Nick

----- Original Message -----
From: Lenharcik Juraj <[EMAIL PROTECTED]>
To: Tag Libraries Users List <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 9:25 AM
Subject: AW: Getting my JRun taglib working with Tomcat 3.2.3


> Gruess Gott Nick,
>
> you have to insert a entry for your taglib in the web.xml.
> <web-app>
> ....
> <taglib>
> <taglib-uri>/WEB-INF/struts.tld</taglib-uri>
> <taglib-location>/WEB-INF/struts.tld</taglib-location>
> </taglib>
> ....
>
> and dont forget to insert something like this in your jsp:
>
> <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>....
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Nick de Voil [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 23. November 2001 10:10
> An: Tag Libraries Users List
> Betreff: Re: Getting my JRun taglib working with Tomcat 3.2.3
>
>
> Gruess Gott Christian!
>
> > you can put your custom tag classes either in the WEB-INF/classes or -
as
> a
> > JAR-file - in the WEB-INF/lib directory. The TLD must be located
somewhere
> > in
> > the WEB-INF/... directory. It's a good practice to put them in a
separate
> > directory, such as WEB-INF/tlds (Don't forget to adapt the taglib
> directive
> > in
> > your JSP).
>
> Thanks. What about the web.xml file? Do I have to have that?
>
> Nick
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to