Link to home
Start Free TrialLog in
Avatar of ccst
ccst

asked on

Save date and time using JAVA applet

Anyone can give FULL programme of JAVA APPLET that save the date and time when people visit my homepage?
( I really want use JAVA to write the programme, but not in other methods )
Avatar of byoung
byoung

If all you want is time and date, I'd use JavaScript instead of Java.  You can define a cookie for the user, then an array of login times for that cookie, then spit out how long since last time they were there, since the first time, etc.  If you want JS, go to:
http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/
and look for cookie, document, time, and alert, and in five minutes you'll have it.  It's not too hard for simple time and date keeping

You don't need any program to find out who visited your homepage when, just lookup your home page in the logs of the web server.

 Philippe

Avatar of ccst

ASKER

Edited text of question
An applet or a java-script can't save anything because that is an security violation. Java applications can save data, but you can't include an application in your web page the solution is to use cgi.

/Kenneth Boman
ASKER CERTIFIED SOLUTION
Avatar of EricKaplan
EricKaplan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial