关于org.apache.jasper.JasperException: No tag "autocompleter" defined in tag library imported with prefix="s"的解决办法
技术背景:
我用的是struts2.2.3
相关源码:
<%@taglib uri="/struts-tags" prefix="s" %>
<s:autocompleter name="province" label="请选择省份" list="%{#request.provinceList}"/>
相关错误信息:
org.apache.jasper.JasperException: /formTag.jsp(83,5) No tag "autocompleter" defined in tag library imported with prefix "s"
解决办法:
导入 struts-dojo-plugin.x.x.x.jar
在页面上添加 <%@ taglib prefix="sd" uri="/struts-dojo-tags" %>
修改以上源码为
<sd:autocompleter name="province" label="请选择省份" list="%{#request.provinceList}"/>
问题解决。