Solved

Save date and time using JAVA applet

Posted on 1997-07-08
5
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

734 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