In JEE6, the El expression in the JSP supports method calls with parameters. You can call it like this:
${foo.bar (Baz)}.
The latest implementation is Juel, you can download a trial. The following code is the test of how to use:
// the ExpressionFactory implementation is de.odysseus.el.ExpressionFactoryImpl|
System.setProperty("javax.el.methodInvocations", "true");
ExpressionFactory factory = new de.odysseus.el.ExpressionFactoryImpl (System.getProperties());
// package de.odysseus.el.util provides a ready-to-use subclass of ELContext
de.odysseus.el.util.SimpleContext context = new de.odysseus.el.util.SimpleContext ();
07.
// set value for top-level property "foo" to String value "bar"
factory.createValueExpression(context, "${foo}", String.class).setValue(context, "bar");
// create an expression
ValueExpression e = factory.createValueExpression(context, "${foo.toUpperCase()}", String.class);
// evaluate
System.out.println(e.getValue(context)); // --> BAR