自定義TagLib的時(shí)候碰到這個(gè)錯(cuò)誤,原因是編輯tld文件的時(shí)候沒(méi)有使用DTD或者Schema文件驗(yàn)證,拼寫(xiě)錯(cuò)誤導(dǎo)致最終報(bào)這個(gè)錯(cuò)誤消息
如果遇到同樣問(wèn)題的同學(xué),不妨檢查一下自己的tld文件對(duì)不對(duì)。
BTW: tld類的異常需要處理好
posted on 2008-08-19 15:53
jht 閱讀(7765)
評(píng)論(1) 編輯 收藏 所屬分類:
J2EE
評(píng)論:
# 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>
回復(fù) 更多評(píng)論