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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -