The info()
method
This method prints various runtime information about OpenCms and the underlying Java/servlet/OS environment.
Other property values than OpenCms that are passed to the tag are routed to a standard System.getProperty(value)
call, so you can also get information about the Java VM environment, using values like java.vm.version
or os.name
.
If the given property value does not match a key from the special OpenCms values and also not the system values, a (String) message is returned with a formatted error message.
Parameters:
Name | Description |
java.lang.String property | Specifies which runtime information should be printed. The following properties are currently supported:
Here are some examples for system properties which are routed to the
|
Example usage:
Print the OpenCms version:
org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response); out.println(cms.property("opencms.version"));