Originally posted by Marc Peabody:
Using Websphere, the tlds get added to web.xml automatically. I took them out and restarted my server. Sure enough, it still works.
I think this is because the declaration script tags in your jsps tell the container where to find them.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
You could still use the web.xml to alias the tlds...
<taglib>
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<%@ taglib uri="struts-html" prefix="html" %>
Marc,
You don't actually need any of the tld files inside your WEB-INF directory as they come packed in the struts.jar file. Furthermore, you don't need to define the tlds as you have above, you can simply have the following line:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
This will find the tags-html from within the jar file sitting in your /WEB-INF/lib directory
HTH
FK