I want to use html tags in my jsp, so I have to add the tag lib in web.xml when I add these lines to web.xml:
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
it does not know taglib tag
Newer versions of the JSP/Servlet containers do not require the taglib entry in the web.xml since containers will automatically find it.
You only need the <%@ taglib %> directive in your JSP page for using .tld files:
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With