This does work in Wildfly 13, but not in Wildfly 14:
<%@ page import="com.example.YourConstants" %>
${YourConstants.FOO}
Any thoughts on this issue?