Using Environment Variable Substitution in web.xml For <context-param> Element

(Doc ID 2279311.1)

Last updated on JUNE 28, 2017

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


Does Weblogic Server supports using environment variable substitution in web.xml for context parameter value?

For example, assume we have below snippet of web.xml.

We expect below Java code returns value already set by Weblogic Server start script through Java command line -D options, for example, -DurlPrefix=https 

devon_home = context.getInitParameter("devon_home");   // return 'https'

Is this Weblogic Server supported? We have tested with Tomcat, it works. 



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms