Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to turn an applet into a standalone application while using Cookie

 
Qmom
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which uses Cookie to get some init data. Now I have to turn the applet into a standalone application. It works well except the Cookie function.

Does anyone know how to fix the problem?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A cookie only works in conjunction with an HTTP connection to a web server. So unless you specifically make that connection (e.g., using HttpClient or java.net.HttpURLConnection), you won't be able to get at the cookie.
If you indeed have an HTTP connection, it would help if you explained what exactly doesn't work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic