Sep 11, 2012

Error : Struts1.x - Unable to add taglib tag in web.xml

Description:
When we add the <taglib> to the web.xml file, it keeps showing error.

<taglib>
       <taglib-uri>http://struts.apache.org/tags-bean</taglib-uri>
       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
 </taglib>

Solution:
Enclose it within the <jsp-config> tag:

<isp-config>
       <taglib>
             <taglib-uri>http://struts.apache.org/tags-bean</taglib-uri>
             <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
       </taglib>
</jsp-config>

No comments:

Post a Comment