Hi friends I am in deep trouble. Can anyone tell me What is tag library ?. Actually i am using Jrun. And the book i am using is based on weblogic server. So the syntax which they use for taglib directive is :- <%@ taglib uri="META-INF.taglib.tld" prefix="example" %> Where else uri is the path for the tld file. In JRun there is no file whose extension is tld. Infact there is no file with the extention of tld in my whole hard disk. Does that means that tag library directory is only possible through web logic server. There is no folder which has name META-INF but there is one folder which has got name web-inf. How do i create or use tag library. Can anyone tell what does this tag library does and how it is important. Thanks in advance abhinav [This message has been edited by Abhinav Sharma (edited December 03, 2001).]
This was the wrong place to ask, since taglibraries are a server-side thing, but briefly: A JSP tag is a user-written extension to the JSP markup language. For example, I might have a taglibrary that puts the current date on the output page. I'd make the tag library visible with the <%@ taglib uri="WEB-INF/datetag.tld" prefix="chronos" %> directive, then when I wanted the current date displayed, I'd use the tag: < chronos:date /> The tag library itself is a Java JAR containing the tag code as specified in the Sun J2EE JSP documentation - a number of books show how to write tag code, and many server distributions have sample source code as well. The taglibrary descriptor is simply an XML file that describes the tag library's properties. The recommended location to store tlds is in WEB-INF, not META-INF, since that's a convenient place for items that the user should not have direct access to but are needed by the web application. The tag classes themselves are in the WEB-INF/class or WEB-INF/lib directories just like all the other classes for the web app.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"
Hi tim, Thanks for your reply. And sorry for posting in wrong place. Actually i knew it but realised it when i already posted. Anyway i will delete it from here and ask it in the jsp forum. Anyway i have saved your reply. I will go through it and then will get back to you. Thanks once again for the reply. abhinav