How do I call an object's method from EL?
Give the object:
public class TestObj {
public testObj() { };
public String test() { return "foo"; }
public String someOtherMethod(String param) { return param + "_bar"; }
}
and the obj is added to the pageContext
pageContext.setAttribute("t", new TestObj());
How would I perform the equivalent of:
<%= t.test() %>
<%= t.someOtherMethod("foo") %>
using EL?