The <PROPERTY> element is used in the <MAP> and <WMS-LAYER>
elements of the map configuration file 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 = layer.getProperty("propertyName");
| Frequency |
Parent Elements (this element is valid within): |
|
PO+ |
<MAP> |
|
PO+ |
<WMS-LAYER> |
| |
|
|
|
Attributes |
Description |
|
name |
The identifier of the property. Required.
|
|
value |
The text value of the property. Required.
|
| |
|
|
| Frequency |
Description (in this context) |
|
PO+ |
This element may appear one or more times within the parent element. |
| |
|
|
Example of setting properties, and how to retrieve them in a JSP script:
<PROPERTY name="download-data" value="ftp://someserver.com/data/data.zip" />
String url = layer.getProperty("download-data");