Simple question about cookie and Java 1.4

I know how to do it in ASP and Javascript, but I am a complete novice when it comes to Java.

Can you write a program in Java (or Java applet if it is not possible in Java) that would write values, expires, domain, path, secure properties to a few cookies, and read the cookies?

If it is not feasible to have many cookies in Java or Java applet, just show me how to make one and read it.



Thanks in advance.
yes4meAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
0
 
yes4meAuthor Commented:
If I understand corectly, sevlet is the only way for a Java application. What about Java applet?
0
 
manshanCommented:
U can use cookies with java servlets.

check the below sites for more info...

www.jguru.com
java.sun.com/servlets
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
objectsCommented:
manshan,

Thats an original comment.
0
 
objectsCommented:
Your applet can get/set cookies values from the http headers.

This site may also help you:

http://www.cookiecentral.com/faq/
0
 
objectsCommented:
Did you need any more information?
0
 
yes4meAuthor Commented:
Please give me a little more time to invest. I will give you the points as soon as I am done.
0
 
yes4meAuthor Commented:
Thanks you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.