EL configuration cariables

From CauchoWiki

Jump to: navigation, search


Contents

[edit] Globally Available Variables

VariableMeaning
__FILE__The current configuration file

[edit] Globally Available Functions

FunctionDescription
class_existsTrue if the specified class exists in the environment
jndiLooks up a resource in the JNDI environment
jndi_lookupSynonym for jndi

[edit] <resin> environment Variables

VariableDescription
javaInformation about the JDK version (3.0.17)
resinThe Resin variable object (see com.caucho.server.resin.ResinServer$Var)
resinHomeThe Resin binary and library home
serverRootThe root of the deployment/application data (defaults to to resinHome)

The java object has the following methods

MethodDescription
isJava5()True if the JDK supports JDK 1.5 or later (3.0.17)

The resin object has the following methods

MethodDescription
idreturns the value of -server on the command line (3.0.15)
homereturns [-resin-home]
rootreturns the deployment root directory, [-server-root] (3.0.15)
rootDirreturn the deployment root directory (same as resin.root)
isProfessional()returns true for a valid Resin professional installation

[edit] <server> environment Variables

VariableDescription
serverinformation about the server environment

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

AttributeDescription
idThe value of -server id from the command line
rootReturns the server's data directory, [-server-root] (3.0.15)
rootDirThe server's root directory (same as server.root)

[edit] <host> environment variables

VariableDescription
hostinformation about the host environment
MethodDescription
rootthe host's root directory (3.0.15)
rootDirthe host's root directory (same as host.root)
hostNamethe host's canonical name
URLthe host's URL
regexpany regular expression values for a host-regexp

[edit] <web-app> environment variables

VariableDescription
webappinformation about the web-app environment
MethodDescription
idthe web-app's unique name
namethe name of the war file (minus the .war)
rootthe root of the web-app's directory
rootDirthe root of the web-app's directory (same as webapp.root)
contextPaththe web-app's context path
regexpany regexp values from a url-regexp
Personal tools