Article View: borland.public.jbuilder.java.language
Article #19288get parameter value
From: forums.borland.com
Date: Mon, 16 Feb 1998 00:00
Date: Mon, 16 Feb 1998 00:00
16 lines
889 bytes
889 bytes
when using an java program as an applet and standalone application, the
following code is generated by JBuilder.
//Get a parameter value
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
the getParameter is working pretty good but where to store the keys for
System.getProperties code ?
Help will be appreciated
Bertrand.
Technical Details
Message-ID:
<6cbsav$pk011@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,826cf5011071c0b7,start X-Google-Attributes: gidf74b3,public From: "forums.borland.com" <bertvanl@skynet.be> Subject: get parameter value Date: 1998/02/16 Message-ID: <6cbsav$pk011@forums.borland.com> X-Deja-AN: 325844350 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Newsgroups: borland.public.jbuilder.java.language