自定义TagLib的时候碰到这个错误,原因是编辑tld文件的时候没有使用DTD或者Schema文件验证,拼写错误导致最终报这个错误消息
如果遇到同样问题的同学,不妨检查一下自己的tld文件对不对。
BTW: tld类的异常需要处理好
	
posted on 2008-08-19 15:53 
jht 阅读(7802) 
评论(1)  编辑  收藏  所属分类: 
J2EE  
 
	    
    
评论:
	
		
			
			# re: [JSP] The function *** cannot be located with the specified prefix
				2009-06-26 14:08 | 
				
注意<name>属性值要和你的方法名removeHtml一致
<function>
    <description>
      remove html from string
    </description>
    <name>removeHtml</name>
    <function-class>item.struts.myTagFunction</function-class>
    <function-signature>java.lang.String removeHtml(java.lang.String)</function-signature>
    <example>
      <c:if test="${myfn:removeHtml(str)}">
    </example>
  </function>  
回复  更多评论