Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to invoke a web page from within java

Status
Not open for further replies.

PGMR1998

MIS
Apr 10, 2001
29
US
Anyone knopw how I can invoke a web page on my web server from within a java program?
 
I have a web page containing a collection of links. On one link I want to keep a count of the number of times this particular link has been clicked on or visited. I thought that the thing to do is:
1) have the link invoke a java program
2) the java program would update an access db and increment a counter field
3) java program calls the web page, so that the web page appears in the same browser window. The user never knows or sees that a count is being kept.
 
This doesn't require Java, it can be done with:
PHP, Perl, Server Side Includes, JavaScript...

Java is overkill for this application. You may want to look into packages like analog or webalizer that use the weblog instead reinventing the wheel.

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top