问题1:org.apache.jasper.JasperException: /Autocompleter1.jsp(24,20) No tag "autocompleter" defined in tag library imported with prefix "s"
解决:1、JSP的头部加上:<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
2、web/lib 引入jar包,struts2-dojo-plugin-2.2.1.1.jar
3、s:autocompleter 改为: sx:autocompleters
*****************************************************************************************
问题2:org.apache.jasper.JasperException: /Autocompleter.jsp(25,20) Attribute theme invalid for tag autocompleter according to TLD
解决:1、去掉:theme="simple" 和 theme="ajax"
*****************************************************************************************
问题3:org.apache.jasper.JasperException: Expression parameters.parseContent is undefined on line 45, column 28 in template/ajax/head.ftl. - Class: freemarker.core.TemplateObject
解决:1、去掉:<s:head theme="ajax" /> ,加上<sx:head/>
*****************************************************************************************
以上就是今天实践autocompleter所遇到的问题和解决的办法。