Re: Use own taglib with old Tomcat versions?

2003-10-29 Thread Kai Grossjohann
Kai Grossjohann [EMAIL PROTECTED] writes:

 frumple.tld says that uri=frumpletags, and the file foo.jsp says %@
 taglib prefix=fr uri=frumpletags %.  Tomcat 4.1.18 then complains
 that it can't find the file /some/dir/frumpletags.

 I'm looking for a solution which ideally should work even with 4.0.6.

 Suggestions?

It turns out that it works (with Tomcat 4.1.18) to specify the
filename of the *.tld file:

%@ taglib prefix=fr uri=/WEB-INF/tlds/frumple.tld %

Now I got to hope that it works even when we distribute our
application as a *.war or *.jar or *.ear or whatever is the right
format for these things.

Kai



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



Use own taglib with old Tomcat versions?

2003-10-28 Thread Kai Grossjohann
I'm using Tomcat 4.1.27, but our customers will want to use older
versions, too.  I created a taglib by writing some classes which live
in the WEB-INF/classes subdir of my application.  I also created a
file WEB-INF/tlds/frumple.tld which contains references to the
classes.  All works fine under 4.1.27, and it seems also under
4.1.24.  But my colleague is using 4.1.18 and this version can't find
the taglib reference.

frumple.tld says that uri=frumpletags, and the file foo.jsp says %@
taglib prefix=fr uri=frumpletags %.  Tomcat 4.1.18 then complains
that it can't find the file /some/dir/frumpletags.

I'm looking for a solution which ideally should work even with 4.0.6.

Suggestions?

tia,
Kai

PS: I guess that I can make an entry in web.xml for this taglib.  (I
was relying on the autodiscovery feature initially.)  But it seems
that I then need a *.jar file for the taglib.  However, it would
be more convenient if the taglib could live in the filesystem such
that Eclipse and NetBeans will build it automatically.


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