EL configuration variables

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
Line 25: Line 25:
 
{|
 
{|
 
!Variable||Description
 
!Variable||Description
 +
|-
 +
||java||Information about the JDK version
 
|-
 
|-
 
||resin||The Resin variable object (see com.caucho.server.resin.ResinServer$Var)
 
||resin||The Resin variable object (see com.caucho.server.resin.ResinServer$Var)
Line 31: Line 33:
 
|-
 
|-
 
||serverRoot||The root of the deployment/application data (defaults to to resinHome)
 
||serverRoot||The root of the deployment/application data (defaults to to resinHome)
 +
|}
 +
 +
The java object has the following methods
 +
 +
{|
 +
!Method||Description
 +
|-
 +
||isJava5()||True if the JDK supports JDK 1.5 or later
 
|}
 
|}
  

Revision as of 00:29, 20 December 2005


Contents

Globally Available Variables

Variable Meaning
__FILE__ The current configuration file

Globally Available Functions

Function Description
class_exists True if the specified class exists in the environment
jndi Looks up a resource in the JNDI environment
jndi_lookup Synonym for jndi

<resin> environment Variables

Variable Description
java Information about the JDK version
resin The Resin variable object (see com.caucho.server.resin.ResinServer$Var)
resinHome The Resin binary and library home
serverRoot The root of the deployment/application data (defaults to to resinHome)

The java object has the following methods

Method Description
isJava5() True if the JDK supports JDK 1.5 or later

The resin object has the following methods

Method Description
id returns the value of -server on the command line (3.0.15)
home returns [-resin-home]
root returns the deployment root directory, [-server-root] (3.0.15)
rootDir return the deployment root directory (same as resin.root)
isProfessional() returns true for a valid Resin professional installation

<server> environment Variables

Variable Description
server information about the server environment

The server variable has a number of fields/methods available (defined in com.caucho.server.resin.ServerController$Var)

Attribute Description
id The value of -server id from the command line
root Returns the server's data directory, [-server-root] (3.0.15)
rootDir The server's root directory (same as server.root)

<host> environment variables

Variable Description
host information about the host environment
Method Description
root the host's root directory (3.0.15)
rootDir the host's root directory (same as host.root)
hostName the host's canonical name
URL the host's URL
regexp any regular expression values for a host-regexp

<web-app> environment variables

Variable Description
webapp information about the web-app environment
Method Description
id the web-app's unique name
name the name of the war file (minus the .war)
root the root of the web-app's directory
rootDir the root of the web-app's directory (same as webapp.root)
contextPath the web-app's context path
regexp any regexp values from a url-regexp
Personal tools