Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

standard way to put .tld files?

843833Jun 18 2001 — edited May 28 2002
Hi I have implemented a java webserver with servlet 2.2 and jsp support. After I finished the server and downloaded some taglib for testing, I find a big problem with locating the .tld file.

My implemention is, use WEB-INF/classes directory for taglib classes and put the .tld file there, or
for taglibs in a jar, jar the tld file in and put the jar file in WEB-INF/lib directory. Either way, in the jsp taglib line specify the .tld file as if it is in the standard directory (so if the .tld file is in /meta-inf/ directory in the jar, specify as /meta-inf/taglib.tld).

The implemention got a problem. If a lot of taglibs in jar format are in the WEB-INF/lib directory,
there is no way to prevent some .tld files have the same name (and there won't even be warnings, since the .tld file are in the jar).

I think tomcat don't allow jared taglibs, and orion
just specify the whole taglib jar as the taglib uri....
That is a good idea but is different then the jsp specification.

What is the best way, or the standard way to implement it?

you can find the server at:

http://www.geocities.com/gzhangx/websrv/

Thanks
Gang
gzhangx@hotmail.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2002
Added on Jun 18 2001
7 comments
180 views