permaculture playing cards*
The moose likes Servlets and the fly likes Check how many browsers are using servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Check how many browsers are using servlets" Watch "Check how many browsers are using servlets" New topic
Author

Check how many browsers are using servlets

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30
I have develepoed one servlet.In general,it may be used by any number of browsers.

How can i check how many browsers are used by servlet.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Hi sarma kiran welcome to Javaranch,
How can i check how many browsers are used by servlet.

Do you mean to say how many browsers are accessing the servlet?

Then its pretty difficult to determine it. Because one browser can send more than one request.

But why do you need it?


SCJP, SCWCD.
|Asking Good Questions|
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Do you want to know which kinds of browsers your servlet is being accessed by? Or just how many clients are making requests to your servlet? If its the second then ServletRequest's getRemoteAddress() will get you the IP address fo the client. You'll need to do some work to records these and count them.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check how many browsers are using servlets