Helma logo
helma.org » Home > docs > guide > properties > app.properties

app.properties

Description
This file is located in an application's code repository (e.g. apps/myApp/ or apps/myApp/code/, depending on your setup). A wide variety of properties can be defined here. Generally, any imaginable name can be used as a property and assigned a string value the way

propertyName = propertyValue

Properties defined in such a way can be evaluated from inside Helma's scripting environment by using the getProperty() function.

Several application specific settings can be controlled trough pre-defined properties. See the list of pre-defined properties for a complete overview.

Many of those pre-defined properties also can be defined server-wide in server.properties. However, any property that is set there will be overwritten by an appropriate setting in app.properties.

Example
# Setting some properties:
backgroundColor = #3333ff
title = "Hello, World!"


Accessing the properties e.g. from root/main.hac:
var bgColor = getProperty("backgroundColor");
res.write(bgColor);
#3333ff

var title = getProperty("title");
res.write(title);
Hello, World!


Up: Property Files
Previous: apps.properties Next: Server and Application Properties

... comment


Page last modified on 2007-03-12 11:06 by czv