>We usually use something like this:
>
>String myValue = NSProperties.getProperty("MyParam");
>
>Or with a built-in default value:
>
>String myValue = NSProperties.getProperty("MyParam", "MyDefaultValue");
>
>I read somewhere that it's better to use NSProperties, especially if you
>want to deploy into a servlet environment.
Don't you have to call NSProperties.setPropertiesFromArgv(argv)
first? If I do, I crash; if I don't none of my parameters appear ...
-- ------------------------------ Prof. John C. Beatty School of Computer Science University of Waterloo 200 University Avenue Waterloo, Ontario Canada N2L 3G1 +1 (519) 888-4567 x 4525 voice +1 (519) 885-1208 fax
This archive was generated by hypermail 2.0.0 : Fri Jan 28 2005 - 16:20:08 EST