lundi 30 mars 2015

How to refer to a Java .properties file from .xml configuration file (JSF)?

Is there an easy way to specify in a JSF configuration .xml file (for example, faces-config.xml, web.xml or applicationContext.xml) that I would like to retrieve certain values for the configuration from an external .properties file? is that something that can be done using JNDI or similar?


For example:



<something>
#{brilliant-code-that-retrieves-values-from-.properties-file}
</something>


Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire