How to Call Java Properties File from ftl

There is a Configuration.properties files which has different key and values, I wanted to call from .ftl which actually renders link based on key for each environment. Since ftl is specific to only one bean how can I call normal java classes or properties files from ftl.

Here is an example :
config.properties has following key and value
helpCenterUrl=www.helpcenter.com

config.java has following code , if key is passed in getProperty the value assigned will be returned.

public static final String getProperty(String keyValue) {
return INSTANCE.prop.getProperty(keyValue);
}

I am trying to call ${config.getProperty(“helpCenterUrl”)} in help-center.ftl so that the URL should be populated from properties file
Could someone help me on this

Please see:

1 Like