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? I don't think
the tld should be extracted from the taglib jar file, because the process of
setting up tld files should be easy (I have downloaded some taglib jar
files, and set them up by extracting the .tld files is very annoying). The
idea of jared taglib file is drop it to any webserver and they should work
right away (should not need to change the taglib jar or the jsp file use the
taglib). I think orion's idea is the best, but then we need a standard
place to put the .tld file. I don't think there are standards on that, but
I don't lik the place they put it (meta-inf, lower case ??)
Any ideas?
you can find the server and a jared taglib example at:
http://www.geocities.com/gzhangx/websrv/
Thanks
Gang
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html