• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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 )
0
ccst
Asked:
ccst
1 Solution
 
byoungCommented:
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
0
 
PhilippeCommented:

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

0
 
ccstAuthor Commented:
Edited text of question
0
 
skyflashCommented:
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
0
 
EricKaplanCommented:
As far as I can see you have two options (Java applet security prevents applet writing to files, etc.):

1) Write a java applet which connects to your host, and sends data to a local database (via JDBC) - a bit complicated

2) Write a CGI script that does that (if you have CGI permission on your server) - a lot more easier

-Eric.

You might want to try one of the available (free) CGI counters (even mine ;-) )
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now