Hi i am using an EL function with double parameter. but getting exception
"Comma expected for expression language function abc rollDice"
please help me to find where i am wrong.
---------------------------------------------------------------------------
Code-----
Jsp:-
<%@ taglib uri="DiceFunctions" prefix="mine"%>
${mine:rollIt(2)}
---------------------------------------------------------------------------
CLASS:-
package beans;
public class DiceRoller {
public static double rollDice(double i){
return Math.abs(i);
}
}
----------------------------------------------------------------------
TLD:-
<short-name>abc</short-name>
<uri>DiceFunctions</uri>
<function>
<name>rollIt</name>
<function-class>beans.DiceRoller</function-class>
<function-signature>double rollDice(double i)</function-signature>
</function>