Java netscape.javascript.JSObject used for storing cookies
问题 I have a Java application running on the web through a Webswing server. A Webswing server translates Java to HTML5 for secure web usage. I use netscape.javascript.JSObject to store and read cookies from the Java application. // write String cookie = "name=userstuff; Expires.... "; JSObject global = JSObject.getWindow(null); global.eval("document.cookie=" + "\"" + cookie + "\""); //read Object cookies= global.eval("document.cookie"); I have not found a way to store passwords in the browser