解决<%@taglib prefix="s" uri="/struts-tags"%>显示找不到
2013-05-22 15:43
309 查看
问题:
jsp中使用<%@taglib prefix="s" uri="/struts-tags"%>显示找不到
解决方法:
在web.xml中插入标签属性:
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>WEB-INF/struts-tags.tld</taglib-location>
</taglib>
对于servlet2.3版本,插入在<web-app></web-app>中即可;
对于servlet2.4版本,需插入在<jsp-config></jsp-config>中,其中jsp-config可以是web-app中的标签。
jsp中使用<%@taglib prefix="s" uri="/struts-tags"%>显示找不到
解决方法:
在web.xml中插入标签属性:
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>WEB-INF/struts-tags.tld</taglib-location>
</taglib>
对于servlet2.3版本,插入在<web-app></web-app>中即可;
对于servlet2.4版本,需插入在<jsp-config></jsp-config>中,其中jsp-config可以是web-app中的标签。
相关文章推荐
- 论 <%@taglib prefix="s" uri="/struts-tags" %> 的重要性
- <%@ taglib prefix="s" uri="/struts-tags"%>
- <%@ taglib prefix="s" uri="/struts-tags" %>地址问题
- <%@ taglib prefix="s" uri="/struts-tags"%>
- Struts的常用标签<%@ taglib prefix="s" uri="/struts-tags"%>
- struts2标签引用<%@ taglib prefix ="s" uri="/struts-tags"%>报错
- <%@ taglib prefix="s" uri="/struts-tags" %>的问题
- <%@ taglib prefix="s" uri="/struts-tags" %>的问题
- <%@ taglib prefix="s" uri="/struts-tags" %>地址问题
- <%@ taglib prefix="s" uri="/struts-tags"%>
- Struts的常用标签<%@ taglib prefix="s" uri="/struts-tags"%>
- <%@ taglib uri="http://jakarta.apache.org/taglibs/i18n" prefix="i18n" %>错误提示:找不到标签库
- <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>标签再使用时报错
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 出错
- <%@ taglib uri="" prefix=""%> 使用
- <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
- <%@ taglib prefix="r" tagdir="/WEB-INF/tags/r"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- taglib prefix="s" uri="/struts-tags"
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>会报错