Solved

Simple question about cookie and Java 1.4

Posted on 2002-07-04
8
177 Views
Last Modified: 2013-11-24
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.
0
Comment
Question by:yes4me
  • 4
  • 3
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 7130769
0
 

Author Comment

by:yes4me
ID: 7130993
If I understand corectly, sevlet is the only way for a Java application. What about Java applet?
0
 
LVL 1

Expert Comment

by:manshan
ID: 7130999
U can use cookies with java servlets.

check the below sites for more info...

www.jguru.com
java.sun.com/servlets
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 92

Expert Comment

by:objects
ID: 7131339
manshan,

Thats an original comment.
0
 
LVL 92

Expert Comment

by:objects
ID: 7131348
Your applet can get/set cookies values from the http headers.

This site may also help you:

http://www.cookiecentral.com/faq/
0
 
LVL 92

Expert Comment

by:objects
ID: 7137180
Did you need any more information?
0
 

Author Comment

by:yes4me
ID: 7137184
Please give me a little more time to invest. I will give you the points as soon as I am done.
0
 

Author Comment

by:yes4me
ID: 7142418
Thanks you.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum5 challenge 5 84
split53 challenge 7 95
servlet example 17 29
How to determine if a string is a valid SHA value 7 28
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question