Re: Dependency on a tag libary and its descriptor
okrische wrote: Hello, i have a project, which provides a tag library mytaglib.jar. While the tag library is in development, the tag library descriptor mytaglib.tld grows and changes as well. It belongs together. I have another webapp project, which depends on this tag library and its tld Reflecting the dependency to the tag library is simple. So, when i compile the project, the latest snapshot will be pulled from the repository. But how will i get the latest mytaglib.tld ? Extracting it from the jar could be an idea.? And putting it into the WEB-INF directory of the webapp-project? I'm confused. Why would you want to extract the .tld file? Would i have to do that with each taglib dependency? Thankful for ideas. Cheers. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency on a tag libary and its descriptor
Hello Dennis, i just found this line in the jsp spec 1.1: 5.2.1 Packaged Tag Libraries JSP page authoring tools are required to accept a Tag Library that is packaged as a JAR file. When packaged sot he JAR file must have a tag library descriptor file named META-INF/taglib.tld. After all those years i have just learned something new. I always extracted taglibs, added the taglib mappings to the web.xml and thats it. I do not know why. Never asked myself. And so i can ask myself from now on as well: why would i continue to want that? And i can answer then: because i can. But of course i will change this behaviour just from today on. :-) Thank you a lot. Dennis Lundberg-2 wrote: okrische wrote: Hello, i have a project, which provides a tag library mytaglib.jar. While the tag library is in development, the tag library descriptor mytaglib.tld grows and changes as well. It belongs together. I have another webapp project, which depends on this tag library and its tld Reflecting the dependency to the tag library is simple. So, when i compile the project, the latest snapshot will be pulled from the repository. But how will i get the latest mytaglib.tld ? Extracting it from the jar could be an idea.? And putting it into the WEB-INF directory of the webapp-project? I'm confused. Why would you want to extract the .tld file? -- View this message in context: http://www.nabble.com/Dependency-on-a-tag-libary-and-its-descriptor-tf4355291s177.html#a12412578 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency on a tag libary and its descriptor
And now i know why i did this without asking myself. It seems to be a common practice to say something like i saw on jakarta taglibs: http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html Follow these steps to configure your web application with this tag library: * Copy the tag library descriptor file to the /WEB-INF subdirectory of your web application. * Copy the tag library JAR file to the /WEB-INF/lib subdirectory of your web application. * Add a taglib element to your web application deployment descriptor in /WEB-INF/web.xml like this: taglib taglib-urihttp://jakarta.apache.org/taglibs/string-1.1/taglib-uri taglib-location/WEB-INF/string.tld/taglib-location /taglib -- View this message in context: http://www.nabble.com/Dependency-on-a-tag-libary-and-its-descriptor-tf4355291s177.html#a12412915 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]