0
<%@ taglib uri="/WEB-INF/LIB/struts-html.tld" %>

显示无效标记库时出错。tld 中的“名称”没有设置方法。

请帮忙。

4

1 回答 1

1

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" %>
于 2010-08-20T11:01:30.970 回答