How do I invoke a static method in EL

66 views Asked by At

Hi I'm maintaining some legacy JSP code and I need to be able to do some conditional rendering like

<c:if test="${SomeClass.staticMethod(obj.getUrl())}">
    <td> ... </td>
</c:if>

However I'm getting syntax error at position 19, encountered '(', expected '}', I think the test attribute doesn't like the fact that a function is being called in there?

How do I conditionally render some html in a JSP based on the return value of a function?

0

There are 0 answers