You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bort <sp...@rogers.com> on 2004/03/10 21:03:18 UTC
[OT] Getting the current page's file name
Hi all
I want to be able to record in our database, which page is getting hit on
our web site. So, when someone comes to the specials.jsp page on our site,
I want to be able to pick that value up, and record it in our database.
I have the method that records to the database, but I don't know how to pick
up the file name. I was thinking of using JavaScript's location.href, but I
don't know how to access that value from java.
Anyone have any ideas for a solution?
tia
bort
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: [OT] Getting the current page's file name
Posted by Benz Lim <be...@bizwave.net>.
Why dun you use AWSTATS.
available in http://awstats.sourceforge.net/
base on your log file it is able to filter out a lot of information
like browser of your user, which pages, ip country,
it has a built in CGI report script which render a graphic display nicely
you might need to spend sometime to do the installation but it is easy.
Hope this helps...
Best Regards,
Benz Lim
-----Original Message-----
From: news [mailto:news@sea.gmane.org]On Behalf Of bort
Sent: Thursday, March 11, 2004 4:03 AM
To: struts-user@jakarta.apache.org
Subject: [OT] Getting the current page's file name
Hi all
I want to be able to record in our database, which page is getting hit on
our web site. So, when someone comes to the specials.jsp page on our site,
I want to be able to pick that value up, and record it in our database.
I have the method that records to the database, but I don't know how to pick
up the file name. I was thinking of using JavaScript's location.href, but I
don't know how to access that value from java.
Anyone have any ideas for a solution?
tia
bort
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org