In HFSJ, there is a example for writing functions in TLD.
Example on page 389.
--------------------------------------
Code in TLD:
<description>JSTL 1.1 functions library</description>
<display-name>JSTL functions</display-name>
<tlib-version>1.1</tlib-version>
<short-name>mine</short-name>
<uri>DiceFunctions</uri>
<function>
<description>
User defined TLD.
</description>
<name>rollIt</name>
<function-class>com.scwcd.apps.util.DiceRoller</function-class>
<function-signature>int rollIt()</function-signature>
</function>
Code on
JSP:
<%@ taglib prefix="mine" uri="DiceFunctions"%>
${mine.rollIt()}
I get error :
The function rollIt must be used with a prefix when a default namespace is not specified
But if i change the code to --> ${mine.rollIt} // here the brackets are removed. I do not get any error but i also do not get any output.
----------------------------------------------------
Thanks in advance.