Subj : scripting static properties from Host Objects To : netscape.public.mozilla.jseng From : mesuti@aciworldwide.com Date : Fri Feb 27 2004 08:44 am Hi, is it possible to use static properties defined in host objects in JavaScript? for example: public class TLV extends ScriptableObject { final public static int EMV = 1; final public static int DGI = 2; final public static int L16 = 3; public TLV() { } public void jsConstructor() { } public String getClassName() { return "TLV"; } } JavaScript example: var encoding = TLV.EMV; OR do I have to define the property (belongs to TLV object) in context level as specified below: Context cx = Context.enter(); Scriptable scope = cx.initStandardObjects(null); Scriptable jsProp = cx.toObject(new Integer(1), scope); scope.put("TLV.EMV", scope, jsProp); Thanks in advance, Ishak Mesut .