As we saw in "HOW TO : WEBAPP > jfw.properties" the framework comes with
a properties file which must be configured, to work properly. The class used for managing this file
is PropertiesManager.
This class offers some methods for reading the parameters defined in a properties file. The parameters
of the properties files are normally called keys. To get an instance of PropertiesManager
we can use the constructor of this class for creating a new instance, but it's much better to use the
class PropertiesProxy. Here is an
example:
In the above example we get a PropertiesManager for the file jfw.properties.
Remember that the properties files must be saved in a directory or in a jar file declared in classpath. The "WEB-INF/classes/" directory, for example, is a directory of the classpath.