error in tagdirective
<%@ taglib uri="/WEB-INF/LIB/struts-html.tld" %>
Error displaying invalid taglib.. no setter method for the "name " in t开发者_StackOverflow社区ld.
Please help.
Your question is ver much unclear but from whqat I see is that your path is incorrect, the LIB
should be changed to lib
. Also, you need to prefix
your taglib.
Change this:
<%@ taglib uri="/WEB-INF/LIB/struts-html.tld" %>
to
<%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>
Did you declare your TLD in web.xml?
PS If you have your Struts jars (including taglib jars) then you can just do this in jsp's.
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
精彩评论