Helma Logo
main list history
previous version  overview  next version

Version 4 by hannes on 21. September 2009, 23:48

<h4>Description</h4>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

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

<tt><i>propertyName = propertyValue</i></tt>Properties defined in such a way can be evaluated from inside Helma's scripting environment by using the `getProperty()` function.

Properties defined in such a way Several application specific settings can be evaluated from inside Helma's scripting environment by using controlled trough pre-defined properties. See the <tt>getProperty()</tt> function[Server and Application Properties] for a complete overview.

Several application specific settings Many of those pre-defined properties also can be controlled trough pre-defined propertiesdefined server-wide in [server.properties]. See the *server and application properties list|Server and Application Properties* for a complete overviewHowever, any property that is set there will be overwritten by an appropriate setting in [app.properties].

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

<h4>Example</h4>    # Setting some properties:
    backgroundColor = #3333ff
    title = "Hello, World!"</tt>

<tt># Setting some properties:Accessing the properties e.g. from `root/actions.js`:
backgroundColor = #3333ff
title = "Hello, World!"</tt>

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

    var title = getProperty("title");
    res.write(title);
<i>Hello    // "Hello, World!</i></tt>World!"

     removed
     added