java - JSTL & Spring: Accessing methods with arguments -



java - JSTL & Spring: Accessing methods with arguments -

i have object method

public boolean haspermission(string role) { homecoming permissions.contains(role); }

i want equivalent of:

<c:if test="${row.haspermission(role)}"> <td></td> </c:if>

but cannot access haspermission method within jsp file. how can it?

the latest version of el (in tomcat 7 ex.) supports (${obj.method(arg)})

if have older version have 2 options:

make custom jstl function use jboss el extension

java spring jsp jstl el

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -