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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -