Creating cookies

Hi:

I want to create a cookie to store some data (only a name) for loading that data into a html file using Javascript. That's why I need to create a cookie because is the only accesible file from a javascript function.

I have been lloking for it but the only thing I found is a class called cookie but only for J2EE (servlets and JSP). I need a solution but using J2SE (a standar Java application).

Thanx for your possible help.

[463 byte] By [bravu] at [2007-9-26 5:30:44]
# 1

A cookie comes doen to the browser in as a header.

You could read about the syntax for this cookie header in the cookie specificationsftp://ftp.isi.edu/in-notes/rfc2109.txtand write code to set your cookies yourself.

i.e. do what javax.servlet.http.Cookie would be doing to set the cookie.

neville_sequeira at 2007-6-29 19:40:49 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...