File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes accessing jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "accessing jsp" Watch "accessing jsp" New topic

accessing jsp

A Babu
Ranch Hand

Joined: Nov 28, 2005
Posts: 114
hi all,
how to know the number of clients access the particuler jsp page.


Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
You can maintain logs using filter.
A Babu
Ranch Hand

Joined: Nov 28, 2005
Posts: 114

how can we do maintaining logs using filters ,can u explain eloborately.

[ February 06, 2006: Message edited by: A Babu ]
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You will have to read up on filters. What you want to do is associate a filter with a particular reesource (servlet/JSP), and have that filter increment a count and log it whenever the resource is accesed.

You can also achieve this without using a filter, by having the resource itself do the logging.

So much trouble in the world -- Bob Marley
wood burning stoves
subject: accessing jsp
Similar Threads
WA #1.....word association
Struts: No getter method for property name problem
creating a pop up calendar within a form
what is defalut value of Custom tag body-content
pop up page