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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 18 years ago
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
Look! It's Leonardo da Vinci! And he brought a tiny ad!
Devious Experiments for a Truly Passive Greenhouse!