Is it possible to have a TLD map to the following function:
public static T[] toArray(T... stuff) {
return stuff;
}
So that I
One thing I did to get around this was to create a utility function class and set it on the application context when the server starts up, rather than trying to define it as an EL function. You can then access the method in EL.
So when my servlet starts up:
context.setAttribute("utils", new MyJSPUtilsClass());
and on my JSP:
${utils.toArray(1, 2, 3, 4)}