Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

my web.xml does not know taglib tag

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

like image 720
AFF Avatar asked Dec 20 '25 09:12

AFF


1 Answers

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" %>
like image 93
Nirdesh Sharma Avatar answered Dec 23 '25 01:12

Nirdesh Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!