Using Java Function in Jsp Using Jstl

We can use Java functions in jsp using JSTL using the TLD file. This has been covered already.

And another method to use is,

<% pageContext.setAttribute("keyName", RoleMenuEnum.Manageuser.getLabelName()); %>

Like this.

And usage would be,
<c:when test="${some == keyName}"/>...c:when>