How to refer to a constant using JSTL

I have a java constant defined as follows:
public static final String ACCESS_ROLE="accessRole".

In a struts action class I set this attribute in a session sesssion.setAttribute(Constants.ACCESS_ROLE, "adminrole");

In my JSP I am using JSTL. How could I use JSTL to check that the attribute exists in the session, i know how to do it using the actual string value such as

<c:if test="${(sessionScope.accessRole == 'true') }" > but how would I use Constant.ACCESS_ROLE in the if expression?
singh101Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ioantonConnect With a Mentor Commented:
0
All Courses

From novice to tech pro — start learning today.