On 9/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Jason Kwon" <[EMAIL PROTECTED]> > > > Say I have multiple webapps. > > Currently, I am deploying each webapp with their own copies of the > > struts TLDs. > > Is there any way I can deploy each webapp and deploy only a single set > > of struts TLDs? > > There is a way you can deploy *none* of the tlds. :) Assuming you're on a > Servlet 2.3 or better container, and that by "deploying" you mean you're > putting the tlds under WEB-INF and configuring them in web.xml, all you have > to do is start using the right URI in your <@taglib> tags, and the tlds > which are already in (for example) struts.jar will be automatically used. > > Example: > <%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %> > > If you're using the non-el version of the tags, the URI will be different-- > look in the tld itself for the > <uri>http://struts.apache.org/tags-html</uri>, and use that in your <%@ > taglib> tag. > > Then delete the .tld files from wherever you had them, and delete the > <taglib> tags from web.xml.
Ok, I have Struts 1.2.7 distro, which contains META-INF/tlds directory with the following tld files: struts-bean-1.1.tld struts-bean.tld struts-html-1.1.tld struts-html.tld struts-logic-1.1.tld struts-logic.tld struts-nested-1.1.tld struts-nested.tld struts-tiles-1.1.tld struts-tiles.tld *1.1.tld files have older uri in them referring jakarta.struts (interesting why they have higher version number?). What about EL tags? Will they be included in distro? With JSP 2.4 most users will fall back to standard Struts tags, but I use Struts-EL and I would like it to be in the distro as well. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]