EL configuration variables
From Resin 3.0
(Difference between revisions)
m (EL configuration cariables moved to EL configuration variables) |
|||
Line 1: | Line 1: | ||
[[Category:Configuration]] | [[Category:Configuration]] | ||
− | + | Resin configuration can use JSP EL variables in the resin.xml and resin-web.xml. | |
− | { | + | ; getenv |
− | + | : System environment variables | |
− | + | ; host | |
− | + | : Information from the virtual host | |
− | + | ; java | |
+ | : Contains JVM variables | ||
+ | ; resin | ||
+ | : Contains top-level Resin configuration like ${resin.home} | ||
+ | ; system | ||
+ | : Values from the Java System.getProperties | ||
+ | ; webApp | ||
+ | : Information about the web-app | ||
+ | ; ${__DIR__} | ||
+ | : The directory of the current configuration file. | ||
+ | ; ${__FILE__} | ||
+ | : The current configuration file. | ||
− | = | + | == getenv == |
− | { | + | The ${getenv} variable returns system environment variables. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <mypkg:MyBean> | |
+ | <myValue>${getenv["MY_VAR"]}</myValue> | ||
+ | </mypkg:MyBean> | ||
− | + | == host == | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | The | + | The ${host} variable returns virtual host values |
− | { | + | ; ${host.name} |
− | + | : The name used for deployment in a hosts/ directory | |
− | + | ; ${host.hostName} | |
− | + | : The canonical DNS host name | |
− | + | ; ${host.url} | |
+ | : The URL for the canonical host name | ||
+ | ; ${host.regexp[0]} | ||
+ | : For host-regexp matching, the n-th regexp expression | ||
+ | ; ${host.root} | ||
+ | : The virtual host's rootDirectory | ||
+ | ; ${host.warDirectory} | ||
+ | : The webapps/ directory in the virtual host | ||
− | + | == java == | |
− | { | + | ; ${java.home} |
− | + | : The [[Path]] to the JDK's home directory | |
− | + | ; ${java.properties['user.name']} | |
− | + | : Any System.getProperty("foo") value | |
− | + | ; ${java.userName} | |
− | + | : The value of System.getProperty("user.name") | |
− | + | ; ${java.version} | |
− | + | : The value of System.getProperty("java.version") | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | = | + | == resin == |
− | { | + | ; ${resin.address} |
− | + | : The address of the <server> configuration | |
− | + | ; ${resin.conf} | |
− | + | : The path to the Resin configuration file | |
− | + | ; ${resin.home} | |
− | + | : The Resin installation directory | |
− | The | + | ; ${resin.port} |
− | + | : The port of the <server> configuration | |
− | + | ; ${resin.root} | |
− | + | : The Resin content root directory | |
− | + | ; ${resin.serverId} | |
− | + | : The unique server identifier specified by -server id | |
− | + | ; ${resin.version} | |
− | + | : The Resin version | |
− | + | ; ${resin.versionDate} | |
− | + | ; The Resin build date | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 19:46, 2 October 2010
Resin configuration can use JSP EL variables in the resin.xml and resin-web.xml.
- getenv
- System environment variables
- host
- Information from the virtual host
- java
- Contains JVM variables
- resin
- Contains top-level Resin configuration like ${resin.home}
- system
- Values from the Java System.getProperties
- webApp
- Information about the web-app
- ${__DIR__}
- The directory of the current configuration file.
- ${__FILE__}
- The current configuration file.
Contents |
getenv
The ${getenv} variable returns system environment variables.
<mypkg:MyBean> <myValue>${getenv["MY_VAR"]}</myValue> </mypkg:MyBean>
host
The ${host} variable returns virtual host values
- ${host.name}
- The name used for deployment in a hosts/ directory
- ${host.hostName}
- The canonical DNS host name
- ${host.url}
- The URL for the canonical host name
- ${host.regexp[0]}
- For host-regexp matching, the n-th regexp expression
- ${host.root}
- The virtual host's rootDirectory
- ${host.warDirectory}
- The webapps/ directory in the virtual host
java
- ${java.home}
- The Path to the JDK's home directory
- ${java.properties['user.name']}
- Any System.getProperty("foo") value
- ${java.userName}
- The value of System.getProperty("user.name")
- ${java.version}
- The value of System.getProperty("java.version")
resin
- ${resin.address}
- The address of the <server> configuration
- ${resin.conf}
- The path to the Resin configuration file
- ${resin.home}
- The Resin installation directory
- ${resin.port}
- The port of the <server> configuration
- ${resin.root}
- The Resin content root directory
- ${resin.serverId}
- The unique server identifier specified by -server id
- ${resin.version}
- The Resin version
- ${resin.versionDate}
- The Resin build date