Using symbolic constants in EL

Is there a way of using a public static final data member of a class within an EL, such as #{my.class.pkg.MyClass.MY_CONSTANT}? I don’t want to invoke some util based on reflection or something similar.

Hi,

As far as I know, the Java EL specification doesn’t provide this feature, so you would have to with a workaround.

Cheers,
Thorben

1 Like