Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I read environment variables in java? 1

Status
Not open for further replies.

Zot

Technical User
Mar 26, 2001
11
GB
I want to be able to alter what screen I display dependant on environment variable set up in NT login script ... is it possible to 'get at' and interrogate these from Java ?
 
yes you can read them with java, and also with javascript
let us know if you want to use JAVA or JAVASCRIPT
 
Javascript - thanks.
 
just remember that javascript is CLIENT side so you can't get ALL env variables
here are thos you can access (taken from : appCodeName Specifies the code name of the browser.
appName Specifies the name of the browser.
appVersion Specifies version information for the Navigator.
language Indicates the translation of the Navigator being used.
mimeTypes An array of all MIME types supported by the client.
platform Indicates the machine type for which the Navigator was compiled.
plugins An array of all plug-ins currently installed on the client.
userAgent Specifies the user-agent header.
javaEnabled Tests whether Java is enabled.
plugins.refresh Makes newly installed plug-ins available and optionally reloads open documents that contain plug-ins.
preference Allows a signed script to get and set certain Navigator preferences.
savePreferences Saves the Navigator preferences to the local file prefs.js.
taintEnabled Specifies whether data tainting is enabled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top