File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Website Statistics using Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Website Statistics using Struts" Watch "Website Statistics using Struts" New topic

Website Statistics using Struts

Phat Loc

Joined: Sep 11, 2003
Posts: 1
Hi All,
I am creating a website using Struts. I would like to gather statistics on site usage. Any suggestions as to the best approach?
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6264

What kind of statistics? Struts is geared mostly for flow control and presentation. You might try extending the ActionServlet and hook into the doGet/doPost methods to log information. You might also want to consider using Filters instead.

Junilu - [How to Ask Questions] [How to Answer Questions]
It is sorta covered in the JavaRanch Style Guide.
subject: Website Statistics using Struts
jQuery in Action, 3rd edition