自定義TagLib的時候碰到這個錯誤,原因是編輯tld文件的時候沒有使用DTD或者Schema文件驗證,拼寫錯誤導致最終報這個錯誤消息
如果遇到同樣問題的同學,不妨檢查一下自己的tld文件對不對。
BTW: tld類的異常需要處理好
posted on 2008-08-19 15:53
jht 閱讀(7766)
評論(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>
回復 更多評論