• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Accessing java.lang.System

New Here ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

Can someone please tell me how I can set a java system property from ColdFusion Code?
I want to do the equivalent of

java.lang.System.setProperty("name", "value");
(this is in order to set the javax.xml.parsers.SAXParserFactory property so I can use the Saxon XSLT processor)

How can I get at the underlying java.lang.System to do this?

Thanks!
TOPICS
Advanced techniques

Views

302

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 17, 2006 Apr 17, 2006

Copy link to clipboard

Copied

LATEST
paul_harv wrote:
> Can someone please tell me how I can set a java system property from ColdFusion
> Code?
> I want to do the equivalent of
>
> java.lang.System.setProperty("name", "value");
> (this is in order to set the javax.xml.parsers.SAXParserFactory property so I
> can use the Saxon XSLT processor)

<cfscript>
propertyKey="yourKey";
propertyValue=5;
//or use java.util.Properties
prop=createObject("java","java.lang.System");
prop.setProperty(propertyKey,propertyValue);
</cfscript>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation