On Dec 7, 12:46 pm, "Ted Kosan" <[EMAIL PROTECTED]> wrote: > William wrote: > > By the way, do you have any thoughts about technical communication > > issues with the server when using Java versus using Javascript to > > implement the scientific calculator. I think Ted's calculator client > > is a Java applet, > > which might impact how it would communicate with the Sage server. > > The applet uses JSObject to access the javascript environment of the > FireFox browser and it relies on the javascript notebook code in the > browser for all communications with the SAGE server: > > http://java.sun.com/products/plugin/1.3/docs/jsobject.html > > This approach worked well for eliminating the need for the applet to > log into the SAGE server and it automatically sets it inside the > context of an opened worksheet.
If the applet uses java.net.HTTPUrlConnection to talk to the server from Java, it doesn't have to log in separately... the cookies from the browser's login are automatically used by the Java communications. At least, it works for me, and this document indicates that it should be portable (unless we care about Netscape 4 :): http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/cookie_support.html Carl --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---