Is it possible to have a TLD map to the following function:
public static T[] toArray(T... stuff) { return stuff; }
So that I
It's a little more painful, but you could do something like this:
class MyAddTag extends SimpleTagSupport { private String var; private Object value; public void doTag() { ((List) getJspContext().getAttribute(var).setValue(value); } } ...