Moxi Media Inc.
<property> Discussion Forum
IMF Developer's Guide » Site Configuration » <property>  

The <property> element is used in the <site-config> element to initialize a programmer defined property to the parent object within the XML configuration process. The property value can be retrieved from within a script as follows:

String value = conf.getProperty("propertyName");
Note that site-config properties are also created automatically for all imf.jsp request parameters. For example, if IMF is started with something like:
imf.jsp?site=mysite&testing=HelloWorld
... then the property of testing can be retrieved using:
String testingValue = conf.getProperty("testing");

Frequency Parent Elements (the <property> element is valid within):
POS+ <site-config>
   

Frequency Description (in this context)
POS+ The <property> element may appear one or more times within the <site-config> element in the specified sequence.
   

Attributes Description
name The identifier of the property. Required.
value The text value of the property. Required.
   

Properties used to set options for core IMF routines:

<!-- Maximum number of point features for source layer
     to be used in imfSelectByLayer.jsp script. -->
<property name="select-by-layer-max-points" value="50"/>

<!-- Maximum number of line and polygon features for source
     layer to be used in imfSelectByLayer.jsp script. -->
<property name="select-by-layer-max-other" value="50"/>

<!-- Sets the message displayed on the selected set summary page for
     executing the report action for the selected set. -->
<property name="selected-set-action-hypertext" value="Execute report."/>
	  
<!-- Hide export to shapefile from selected set summary. -->
<property name="selected-set-export-shape" value="false"/>

<!-- Hide export to GML from selected set summary. -->
<property name="selected-set-export-gml" value="false"/>

<!-- Hide export to Excel from selected set summary. -->
<property name="selected-set-export-excel" value="false"/>

Example:

<property name="Custodian" value="John Doe"/>
Retrieval:
String custodian = conf.getProperty("custodian");

Valid HTML 4.01!