Solved

Save date and time using JAVA applet

Posted on 1997-07-08
5
198 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
Comment Utility
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
Comment Utility

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
Comment Utility
Edited text of question
0
 
LVL 1

Expert Comment

by:skyflash
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mergeTwo  challenge 13 70
count7 challenge 12 66
Java and GPO 11 45
recursion example 16 66
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

762 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

13 Experts available now in Live!

Get 1:1 Help Now