JSTL & Spring: Accessing methods with arguments

后端 未结 1 721
故里飘歌
故里飘歌 2020-12-21 05:43

I have an object with a method

  public boolean hasPermission(String role) {
   return permissions.contains(role);
  }

I want to do the equ

相关标签:
1条回答
  • 2020-12-21 06:15

    The latest version of EL (in tomcat 7 for ex.) supports this (${obj.method(arg)})

    If you have an older version you have two options:

    • Make a custom JSTL function
    • Use JBoss EL extension
    0 讨论(0)
提交回复
热议问题