Solved

Save date and time using JAVA applet

Posted on 1997-07-08
5
199 Views
Last Modified: 2010-04-16
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
Comment
Question by:ccst
5 Comments
 
LVL 1

Expert Comment

by:byoung
ID: 1222787
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
 
LVL 2

Expert Comment

by:Philippe
ID: 1222788

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
 

Author Comment

by:ccst
ID: 1222789
Edited text of question
0
 
LVL 1

Expert Comment

by:skyflash
ID: 1222790
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
 
LVL 3

Accepted Solution

by:
EricKaplan earned 10 total points
ID: 1222791
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 86
create a gui in perl 3 72
solarwind tftp server 2 45
Basic Java Case or If-Else statement... 3 43
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now