随笔-46  评论-64  文章-2  trackbacks-0
自定义TagLib的时候碰到这个错误,原因是编辑tld文件的时候没有使用DTD或者Schema文件验证,拼写错误导致最终报这个错误消息

如果遇到同样问题的同学,不妨检查一下自己的tld文件对不对。

BTW: tld类的异常需要处理好
posted on 2008-08-19 15:53 jht 阅读(7665) 评论(1)  编辑  收藏 所属分类: J2EE

评论:
# re: [JSP] The function *** cannot be located with the specified prefix 2009-06-26 14:08 | web_kala
注意<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>
&lt;c:if test="${myfn:removeHtml(str)}">
</example>
</function>  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: