Accessing cookie from Java. JSObject Error
0 posts in topic
Flat View  Flat View

Posted By:   P_Nagappan
Posted On:   Thursday, November 8, 2001 05:47 PM

I am trying to set a cookie from Java.

JSObject myBrowser = JSObject.getWindow(this);
JSObject myDocument = (JSObject) myBrowser.getMember("document");
myDocument.setMember("cookie","name=mynamehere;expires=Sat Dec 08 19:56:24 JST 2001;");

Above is running in Netscape 4.7.

Where as in IE 5.5,

I am getting the following exception, while executing setMember.

netscape.javascript.JSException: Method invocation failed: 0x80004001

If you have any idea, please help.
About | Sitemap | Contact