Is it possible to set and retrieve cookies from Java, in a manner that is compatible with all browsers supporting cookies?
• A. Short answer: no. Longer answer: probably no. Ultimate answer: A cookie is a morsel of tasty data that a server sends back to the client, and can retrieve on demand. It allows the server to retain some state information for each of its clients. The information is typically something like “what pages has the user seen?” or “is this a privileged user?”. The DevEdge site on Netscape’s home page has a javascript-java example on getting cookies. Also http://www.geocities.com/SiliconValley/Vista/1337 has info on connecting an applet with JavaScript functions. It’s quite involved. Stick to just Java if you can.