Home > Contents > Index >
LOADPROPERTY
Loads a property file.
Syntax
<LOADPROPERTY FILE="PROPERTY_FILE"/>Parameters
FILE (required)
- Name of the property file(s) to load. Load multiple files by separating them with a semicolon, for example:
futuretense.ini;mytest.ini;
Note
If multiple property files are loaded with the same property in them, the last property that is loaded takes precedence.
Description
The
LOADPROPERTY
tag loads a property file. This tag can load multiple property files using a semicolon to separate the files. The values loaded from the property file are valid only during the processing of the page containingLOADPROPERTY
. Use this command to access a table in a different database, or to load string properties. For example, you might load a property file to find application-specific values for the local system configuration. The property file must be located in the same folder as the Sites property file (futuretense.ini
).
Note
Loading a property that does not contain the string
futurtense.ini
in the property file disables Sites security by setting theCS.Security
property tofalse
. Sites security remains disabled until theRESTOREPROPERTY
XML tag is called.Error Numbers
The possible values of
errno
include:
Value Description -106 Required property is missing. -300 File not found. -303 Path not found.If one of these errors occurs, the values from the previously loaded property file (probably the default) are still in effect. There should be no need to use the
RESTOREPROPERTY
tag.Example
This example loads a new property file to access a table in a different database. The property file must contain all the information required to connect to the new database (For example, dsn, user name/password set, and so on. ).
<SETVAR
NAME="errno" VALUE="0"/> <LOADPROPERTY FILE="other.ini"/> <SELECTTO
LIST="numbers" WHAT="*" FROM="NumberData"/> after select errno is: <CSVAR
NAME="Variables.errno"/>The
other.ini
property file must define at least the following properties:
ft.debug
cs.readuser
cs.password
cs.privuser
cs.privpassword
cs.dsn
cs.db
cc.contentkey
cc.primary
cc.varchar255
cc.bigtext
cc.datetime
cc.unique
ft.cgipath
cc.smallint
cc.integer
cc.bigint
cc.double
cc.driver
cc.driverclass
See Also
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.